This hopefully describes the API of the function more precisely.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@339762
91177308-0d34-0410-b5e6-
96231b3b80d8
/// Check inner loop (L) backedge count is known to be invariant on all iterations
/// of its outer loop. If the loop has no parent, this is trivially true.
-bool hasInvariantIterationCount(Loop *L, ScalarEvolution &SE);
+bool hasIterationCountInvariantInParent(Loop *L, ScalarEvolution &SE);
/// Helper to consistently add the set of standard passes to a loop pass's \c
/// AnalysisUsage.
// Check inner loop backedge count is consistent on all iterations of the
// outer loop
- if (!hasInvariantIterationCount(SubLoop, SE)) {
+ if (!hasIterationCountInvariantInParent(SubLoop, SE)) {
LLVM_DEBUG(dbgs() << "Won't unroll-and-jam; Inner loop iteration count is "
"not consistent on each iteration\n");
return false;
return (FalseVal + (TrueVal / 2)) / TrueVal;
}
-bool llvm::hasInvariantIterationCount(Loop *InnerLoop,
- ScalarEvolution &SE) {
+bool llvm::hasIterationCountInvariantInParent(Loop *InnerLoop,
+ ScalarEvolution &SE) {
Loop *OuterL = InnerLoop->getParentLoop();
if (!OuterL)
return true;