[llvm] r343548 - [SimplifyCFG] Update comments that refer to CondBB to say ThenBB instead. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 1 15:56:11 PDT 2018
Author: ctopper
Date: Mon Oct 1 15:56:11 2018
New Revision: 343548
URL: http://llvm.org/viewvc/llvm-project?rev=343548&view=rev
Log:
[SimplifyCFG] Update comments that refer to CondBB to say ThenBB instead. NFC
There is no variable in this function named CondBB, but there is one named ThenBB and I believe the comments are all refering to it.
Modified:
llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp
Modified: llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp?rev=343548&r1=343547&r2=343548&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp Mon Oct 1 15:56:11 2018
@@ -1940,11 +1940,11 @@ static bool SpeculativelyExecuteBB(Branc
}
assert(EndBB == BI->getSuccessor(!Invert) && "No edge from to end block");
- // Keep a count of how many times instructions are used within CondBB when
- // they are candidates for sinking into CondBB. Specifically:
+ // Keep a count of how many times instructions are used within ThenBB when
+ // they are candidates for sinking into ThenBB. Specifically:
// - They are defined in BB, and
// - They have no side effects, and
- // - All of their uses are in CondBB.
+ // - All of their uses are in ThenBB.
SmallDenseMap<Instruction *, unsigned, 4> SinkCandidateUseCounts;
SmallVector<Instruction *, 4> SpeculatedDbgIntrinsics;
@@ -1994,7 +1994,7 @@ static bool SpeculativelyExecuteBB(Branc
}
}
- // Consider any sink candidates which are only used in CondBB as costs for
+ // Consider any sink candidates which are only used in ThenBB as costs for
// speculation. Note, while we iterate over a DenseMap here, we are summing
// and so iteration order isn't significant.
for (SmallDenseMap<Instruction *, unsigned, 4>::iterator
More information about the llvm-commits
mailing list