From 295b0e5ef130e08428c993c1f04ed1aea2b434f3 Mon Sep 17 00:00:00 2001 From: Piotr Sobczak Date: Mon, 23 Mar 2020 15:53:59 +0100 Subject: [PATCH] Temporarily allow ExpensiveCombines Temporarily allow ExpensiveCombines argument to avoid front-end issues with https://reviews.llvm.org/D76540. Change-Id: I7644ab01b8b3554b0d37c5d5e423fc82ff26dbd0 --- llvm/include/llvm/Transforms/InstCombine/InstCombine.h | 4 ++++ llvm/lib/Transforms/InstCombine/InstructionCombining.cpp | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/llvm/include/llvm/Transforms/InstCombine/InstCombine.h b/llvm/include/llvm/Transforms/InstCombine/InstCombine.h index 0ad4f54fd465d2..e8425118f95a2b 100644 --- a/llvm/include/llvm/Transforms/InstCombine/InstCombine.h +++ b/llvm/include/llvm/Transforms/InstCombine/InstCombine.h @@ -67,6 +67,10 @@ class InstructionCombiningPass : public FunctionPass { // FunctionPass *createInstructionCombiningPass(); FunctionPass *createInstructionCombiningPass(unsigned MaxIterations); + +/// \deprecated +FunctionPass *createInstructionCombiningPass(bool ExpensiveCombines, + unsigned MaxIterations); } #endif diff --git a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp index da43f510d32ea8..85398bd0c5706f 100644 --- a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp +++ b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp @@ -3912,6 +3912,11 @@ FunctionPass *llvm::createInstructionCombiningPass(unsigned MaxIterations) { return new InstructionCombiningPass(MaxIterations); } +FunctionPass *llvm::createInstructionCombiningPass(bool ExpensiveCombines, + unsigned MaxIterations) { + return new InstructionCombiningPass(MaxIterations); +} + void LLVMAddInstructionCombiningPass(LLVMPassManagerRef PM) { unwrap(PM)->add(createInstructionCombiningPass()); }