Go to the source code of this file.
◆ DEBUG_TYPE
| #define DEBUG_TYPE "codemover-utils" |
◆ collectInstructionsInBetween()
Collect all instructions in between StartInst and EndInst, and store them in InBetweenInsts.
Get the next instructions of I, and push them to WorkList.
Definition at line 60 of file CodeMoverUtils.cpp.
References assert(), llvm::SmallPtrSetImpl< PtrType >::begin(), llvm::SmallPtrSetImplBase::empty(), llvm::SmallPtrSetImpl< PtrType >::erase(), llvm::ilist_node_with_parent< NodeTy, ParentTy, Options >::getNextNode(), I, llvm::SmallPtrSetImpl< PtrType >::insert(), llvm::Instruction::isTerminator(), and llvm::successors().
Referenced by llvm::isSafeToMoveBefore().
◆ reportInvalidCandidate()
◆ STATISTIC() [1/5]
| STATISTIC |
( |
HasDependences |
, |
|
|
"Cannot move across instructions that has memory dependences" |
|
|
) |
| |
◆ STATISTIC() [2/5]
| STATISTIC |
( |
MayThrowException |
, |
|
|
"Cannot move across instructions that may throw" |
|
|
) |
| |
◆ STATISTIC() [3/5]
| STATISTIC |
( |
NotControlFlowEquivalent |
, |
|
|
"Instructions are not control flow equivalent" |
|
|
) |
| |
◆ STATISTIC() [4/5]
| STATISTIC |
( |
NotMovedPHINode |
, |
|
|
"Movement of PHINodes are not supported" |
|
|
) |
| |
◆ STATISTIC() [5/5]
| STATISTIC |
( |
NotMovedTerminator |
, |
|
|
"Movement of Terminator are not supported" |
|
|
) |
| |