Lines Matching refs:LRI

2034   LockstepReverseIterator LRI(UnconditionalPreds);  in SinkCommonCodeFromPredecessors()  local
2035 while (LRI.isValid() && in SinkCommonCodeFromPredecessors()
2036 canSinkInstructions(*LRI, PHIOperands)) { in SinkCommonCodeFromPredecessors()
2037 LLVM_DEBUG(dbgs() << "SINK: instruction can be sunk: " << *(*LRI)[0] in SinkCommonCodeFromPredecessors()
2039 InstructionsToSink.insert((*LRI).begin(), (*LRI).end()); in SinkCommonCodeFromPredecessors()
2041 --LRI; in SinkCommonCodeFromPredecessors()
2050 auto ProfitableToSinkInstruction = [&](LockstepReverseIterator &LRI) { in SinkCommonCodeFromPredecessors() argument
2052 for (auto *I : *LRI) in SinkCommonCodeFromPredecessors()
2078 LRI.reset(); in SinkCommonCodeFromPredecessors()
2082 if (!ProfitableToSinkInstruction(LRI)) { in SinkCommonCodeFromPredecessors()
2088 InstructionsProfitableToSink.insert((*LRI).begin(), (*LRI).end()); in SinkCommonCodeFromPredecessors()
2089 --LRI; in SinkCommonCodeFromPredecessors()
2105 assert(!ProfitableToSinkInstruction(LRI) && in SinkCommonCodeFromPredecessors()
2107 ++LRI; in SinkCommonCodeFromPredecessors()
2114 for (auto *I : *LRI) in SinkCommonCodeFromPredecessors()
2116 if (!ProfitableToSinkInstruction(LRI)) { in SinkCommonCodeFromPredecessors()
2121 ++LRI; in SinkCommonCodeFromPredecessors()
2138 LRI.reset(); in SinkCommonCodeFromPredecessors()
2142 if (!isSafeToSpeculativelyExecute((*LRI)[0])) { in SinkCommonCodeFromPredecessors()
2146 --LRI; in SinkCommonCodeFromPredecessors()
2181 LRI.reset(); in SinkCommonCodeFromPredecessors()