Skip to content

Commit

Permalink
Temporarily allow ExpensiveCombines
Browse files Browse the repository at this point in the history
Temporarily allow ExpensiveCombines argument to avoid front-end
issues with https://reviews.llvm.org/D76540.

Change-Id: I7644ab01b8b3554b0d37c5d5e423fc82ff26dbd0
  • Loading branch information
piotrAMD committed Mar 23, 2020
1 parent 6b29d00 commit 295b0e5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions llvm/include/llvm/Transforms/InstCombine/InstCombine.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ class InstructionCombiningPass : public FunctionPass {
//
FunctionPass *createInstructionCombiningPass();
FunctionPass *createInstructionCombiningPass(unsigned MaxIterations);

/// \deprecated
FunctionPass *createInstructionCombiningPass(bool ExpensiveCombines,
unsigned MaxIterations);
}

#endif
5 changes: 5 additions & 0 deletions llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

0 comments on commit 295b0e5

Please sign in to comment.