aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Pilipenko <apilipenko@azulsystems.com>2020-01-31 15:18:59 -0800
committerArtur Pilipenko <apilipenko@azulsystems.com>2020-01-31 15:22:33 -0800
commit34547ac9594d872fbd6235192c98f180962d15bb (patch)
tree15a6bd472a03a78f02041dab69479d801ac2fc0b
parente5aaf30cf1ab03417c38a3df2482f76e673511a0 (diff)
downloadllvm-34547ac9594d872fbd6235192c98f180962d15bb.zip
llvm-34547ac9594d872fbd6235192c98f180962d15bb.tar.gz
llvm-34547ac9594d872fbd6235192c98f180962d15bb.tar.bz2
NFC. Comments cleanup in DSE::memoryIsNotModifiedBetween
Separated from https://reviews.llvm.org/D68006 review.
-rw-r--r--llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp b/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
index 1ba4aab..2dd4296 100644
--- a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
+++ b/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
@@ -607,26 +607,26 @@ static bool memoryIsNotModifiedBetween(Instruction *FirstI,
BasicBlock *SecondBB = SecondI->getParent();
MemoryLocation MemLoc = MemoryLocation::get(SecondI);
- // Start checking the store-block.
+ // Start checking the SecondBB.
WorkList.push_back(SecondBB);
bool isFirstBlock = true;
- // Check all blocks going backward until we reach the load-block.
+ // Check all blocks going backward until we reach the FirstBB.
while (!WorkList.empty()) {
BasicBlock *B = WorkList.pop_back_val();
- // Ignore instructions before LI if this is the FirstBB.
+ // Ignore instructions before FirstI if this is the FirstBB.
BasicBlock::iterator BI = (B == FirstBB ? FirstBBI : B->begin());
BasicBlock::iterator EI;
if (isFirstBlock) {
- // Ignore instructions after SI if this is the first visit of SecondBB.
+ // Ignore instructions after SecondI if this is the first visit of SecondBB.
assert(B == SecondBB && "first block is not the store block");
EI = SecondBBI;
isFirstBlock = false;
} else {
// It's not SecondBB or (in case of a loop) the second visit of SecondBB.
- // In this case we also have to look at instructions after SI.
+ // In this case we also have to look at instructions after SecondI.
EI = B->end();
}
for (; BI != EI; ++BI) {