Home
last modified time | relevance | path

Searched refs:InvariantRHS (Results 1 – 3 of 3) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLICM.cpp2535 Value *InvariantRHS, ICmpInst &ICmp, Loop &L, in hoistAdd() argument
2540 assert(L.isLoopInvariant(InvariantRHS) && "Precondition."); in hoistAdd()
2561 computeOverflowForSignedSub(InvariantRHS, InvariantOp, in hoistAdd()
2569 Value *NewCmpOp = Builder.CreateSub(InvariantRHS, InvariantOp, "invariant.op", in hoistAdd()
2582 Value *InvariantRHS, ICmpInst &ICmp, Loop &L, in hoistSub() argument
2587 assert(L.isLoopInvariant(InvariantRHS) && "Precondition."); in hoistSub()
2616 if (computeOverflowForSignedSub(InvariantOp, InvariantRHS, SQ) != in hoistSub()
2621 if (computeOverflowForSignedAdd(InvariantOp, InvariantRHS, SQ) != in hoistSub()
2630 ? Builder.CreateSub(InvariantOp, InvariantRHS, "invariant.op", in hoistSub()
2632 : Builder.CreateAdd(InvariantOp, InvariantRHS, "invariant.op", in hoistSub()
H A DInductiveRangeCheckElimination.cpp166 static bool reassociateSubLHS(Loop *L, Value *VariantLHS, Value *InvariantRHS,
368 Loop *L, Value *VariantLHS, Value *InvariantRHS, ICmpInst::Predicate Pred,
376 const SCEV *Limit = SE.getSCEV(InvariantRHS); in reassociateSubLHS()
370 reassociateSubLHS(Loop * L,Value * VariantLHS,Value * InvariantRHS,ICmpInst::Predicate Pred,ScalarEvolution & SE,const SCEVAddRecExpr * & Index,const SCEV * & End) reassociateSubLHS() argument
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyIndVar.cpp226 const SCEV *InvariantRHS = LIP->RHS; in makeIVComparisonInvariant() local
230 if (Rewriter.isHighCostExpansion({InvariantLHS, InvariantRHS}, L, in makeIVComparisonInvariant()
233 !Rewriter.isSafeToExpandAt(InvariantRHS, PHTerm)) in makeIVComparisonInvariant()
238 Rewriter.expandCodeFor(InvariantRHS, IVOperand->getType(), PHTerm); in makeIVComparisonInvariant()