mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Allow BB duplication threshold to be adjusted through JumpThreading's ctor
- BB duplication may not be desired on targets where there is no or small branch penalty and code duplication needs restrict control. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218375 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -206,9 +206,10 @@ FunctionPass *createReassociatePass();
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// JumpThreading - Thread control through mult-pred/multi-succ blocks where some
|
||||
// preds always go to some succ.
|
||||
// preds always go to some succ. Thresholds other than minus one override the
|
||||
// internal BB duplication default threshold.
|
||||
//
|
||||
FunctionPass *createJumpThreadingPass();
|
||||
FunctionPass *createJumpThreadingPass(int Threshold = -1);
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
|
Reference in New Issue
Block a user