Go to the source code of this file.
|
| | STATISTIC (NumTails,"Number of tails duplicated") |
| |
| | STATISTIC (NumTailDups,"Number of tail duplicated blocks") |
| |
| | STATISTIC (NumTailDupAdded,"Number of instructions added due to tail duplication") |
| |
| | STATISTIC (NumTailDupRemoved,"Number of instructions removed due to tail duplication") |
| |
| | STATISTIC (NumDeadBlocks,"Number of dead blocks removed") |
| |
| | STATISTIC (NumAddedPHIs,"Number of phis added") |
| |
| static void | VerifyPHIs (MachineFunction &MF, bool CheckExtra) |
| |
| static bool | isDefLiveOut (unsigned Reg, MachineBasicBlock *BB, const MachineRegisterInfo *MRI) |
| |
| static unsigned | getPHISrcRegOpIdx (MachineInstr *MI, MachineBasicBlock *SrcBB) |
| |
| static void | getRegsUsedByPHIs (const MachineBasicBlock &BB, DenseSet< unsigned > *UsedByPhi) |
| |
| static bool | bothUsedInPHI (const MachineBasicBlock &A, const SmallPtrSet< MachineBasicBlock *, 8 > &SuccsB) |
| |
|
| static cl::opt< unsigned > | TailDuplicateSize ("tail-dup-size", cl::desc("Maximum instructions to consider tail duplicating"), cl::init(2), cl::Hidden) |
| |
| static cl::opt< unsigned > | TailDupIndirectBranchSize ("tail-dup-indirect-size", cl::desc("Maximum instructions to consider tail duplicating blocks that ""end with indirect branches."), cl::init(20), cl::Hidden) |
| |
| static cl::opt< bool > | TailDupVerify ("tail-dup-verify", cl::desc("Verify sanity of PHI instructions during taildup"), cl::init(false), cl::Hidden) |
| |
| static cl::opt< unsigned > | TailDupLimit ("tail-dup-limit", cl::init(~0U), cl::Hidden) |
| |
| #define DEBUG_TYPE "tailduplication" |
| STATISTIC |
( |
NumTails |
, |
|
|
"Number of tails duplicated" |
|
|
) |
| |
| STATISTIC |
( |
NumTailDups |
, |
|
|
"Number of tail duplicated blocks" |
|
|
) |
| |
| STATISTIC |
( |
NumTailDupAdded |
, |
|
|
"Number of instructions added due to tail duplication" |
|
|
) |
| |
| STATISTIC |
( |
NumTailDupRemoved |
, |
|
|
"Number of instructions removed due to tail duplication" |
|
|
) |
| |
| STATISTIC |
( |
NumDeadBlocks |
, |
|
|
"Number of dead blocks removed" |
|
|
) |
| |
| STATISTIC |
( |
NumAddedPHIs |
, |
|
|
"Number of phis added" |
|
|
) |
| |
Definition at line 95 of file TailDuplicator.cpp.
References llvm::MachineBasicBlock::begin(), llvm::MachineFunction::begin(), llvm::dbgs(), E, llvm::MachineBasicBlock::end(), llvm::MachineFunction::end(), llvm::MachineBasicBlock::getNumber(), I, llvm_unreachable(), MI, llvm::MachineBasicBlock::pred_begin(), and llvm::MachineBasicBlock::pred_end().
Referenced by llvm::TailDuplicator::tailDuplicateBlocks().
| cl::opt<unsigned> TailDupIndirectBranchSize("tail-dup-indirect-size", cl::desc("Maximum instructions to consider tail duplicating blocks that ""end with indirect branches."), cl::init(20), cl::Hidden) |
|
static |
| cl::opt<unsigned> TailDuplicateSize("tail-dup-size", cl::desc("Maximum instructions to consider tail duplicating"), cl::init(2), cl::Hidden) |
|
static |
| cl::opt<unsigned> TailDupLimit("tail-dup-limit", cl::init(~0U), cl::Hidden) |
|
static |