[llvm] 883e83d - [NFC][SCEV] Rename variable to correspond its current meaning
Max Kazantsev via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 15 08:45:18 PDT 2022
Author: Max Kazantsev
Date: 2022-07-15T22:33:57+07:00
New Revision: 883e83d5fe36895dc86c5d728649efa42c57f20a
URL: https://github.com/llvm/llvm-project/commit/883e83d5fe36895dc86c5d728649efa42c57f20a
DIFF: https://github.com/llvm/llvm-project/commit/883e83d5fe36895dc86c5d728649efa42c57f20a.diff
LOG: [NFC][SCEV] Rename variable to correspond its current meaning
Added:
Modified:
llvm/lib/Analysis/ScalarEvolution.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index c0924fcf8438..cb4606177a97 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/lib/Analysis/ScalarEvolution.cpp
@@ -11197,14 +11197,13 @@ bool ScalarEvolution::isBasicBlockEntryGuardedByCond(const BasicBlock *BB,
if (ProveViaGuard(Pair.first))
return true;
- const BranchInst *LoopEntryPredicate =
+ const BranchInst *BlockEntryPredicate =
dyn_cast<BranchInst>(Pair.first->getTerminator());
- if (!LoopEntryPredicate ||
- LoopEntryPredicate->isUnconditional())
+ if (!BlockEntryPredicate || BlockEntryPredicate->isUnconditional())
continue;
- if (ProveViaCond(LoopEntryPredicate->getCondition(),
- LoopEntryPredicate->getSuccessor(0) != Pair.second))
+ if (ProveViaCond(BlockEntryPredicate->getCondition(),
+ BlockEntryPredicate->getSuccessor(0) != Pair.second))
return true;
}
More information about the llvm-commits
mailing list