|
| STATISTIC (NumElimIdentity, "Number of IV identities eliminated") |
|
| STATISTIC (NumElimOperand, "Number of IV operands folded into a use") |
|
| STATISTIC (NumFoldedUser, "Number of IV users folded into a constant") |
|
| STATISTIC (NumElimRem, "Number of IV remainder operations eliminated") |
|
| STATISTIC (NumSimplifiedSDiv, "Number of IV signed division operations converted to unsigned division") |
|
| STATISTIC (NumSimplifiedSRem, "Number of IV signed remainder operations converted to unsigned remainder") |
|
| STATISTIC (NumElimCmp, "Number of IV comparisons eliminated") |
|
static Instruction * | findCommonDominator (ArrayRef< Instruction * > Instructions, DominatorTree &DT) |
| Find a point in code which dominates all given instructions.
|
|
static Instruction * | GetLoopInvariantInsertPosition (Loop *L, Instruction *Hint) |
|
static bool | isSimpleIVUser (Instruction *I, const Loop *L, ScalarEvolution *SE) |
| Return true if this instruction generates a simple SCEV expression in terms of that IV.
|
|
std::pair< bool, bool > | llvm::simplifyUsersOfIV (PHINode *CurrIV, ScalarEvolution *SE, DominatorTree *DT, LoopInfo *LI, const TargetTransformInfo *TTI, SmallVectorImpl< WeakTrackingVH > &Dead, SCEVExpander &Rewriter, IVVisitor *V=nullptr) |
| simplifyUsersOfIV - Simplify instructions that use this induction variable by using ScalarEvolution to analyze the IV's recurrence.
|
|
bool | llvm::simplifyLoopIVs (Loop *L, ScalarEvolution *SE, DominatorTree *DT, LoopInfo *LI, const TargetTransformInfo *TTI, SmallVectorImpl< WeakTrackingVH > &Dead) |
| SimplifyLoopIVs - Simplify users of induction variables within this loop.
|
|
static Instruction * | getInsertPointForUses (Instruction *User, Value *Def, DominatorTree *DT, LoopInfo *LI) |
| Determine the insertion point for this user.
|
|
static std::optional< BinaryOp > | matchBinaryOp (Instruction *Op) |
|
Determine the insertion point for this user.
By default, insert immediately before the user. SCEVExpander or LICM will hoist loop invariants out of the loop. For PHI nodes, there may be multiple uses, so compute the nearest common dominator for the incoming blocks. A nullptr can be returned if no viable location is found: it may happen if User is a PHI and Def only comes to this PHI from unreachable blocks.
Definition at line 1182 of file SimplifyIndVar.cpp.
References assert(), llvm::DominatorTree::dominates(), llvm::DominatorTree::findNearestCommonDominator(), llvm::LoopInfoBase< BlockT, LoopT >::getLoopFor(), llvm::ilist_detail::node_parent_access< NodeTy, ParentTy >::getParent(), llvm::BasicBlock::getTerminator(), llvm::DominatorTree::isReachableFromEntry(), llvm_unreachable, and PHI.