diff options
author | Craig Topper <craig.topper@intel.com> | 2018-10-01 22:56:11 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2018-10-01 22:56:11 +0000 |
commit | 721533163085b42699f3996aa0058a79cbdd0116 (patch) | |
tree | 00dc9bb9a16d398f7a6e0905a4fd76ac5f8f133c | |
parent | 93fc255b0c001cd5318c8903edfb0b36ed33f28e (diff) |
[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.
-rw-r--r-- | llvm/lib/Transforms/Utils/SimplifyCFG.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp index 1e93b873f37..c5bd173df18 100644 --- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp @@ -1940,11 +1940,11 @@ static bool SpeculativelyExecuteBB(BranchInst *BI, BasicBlock *ThenBB, } 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(BranchInst *BI, BasicBlock *ThenBB, } } - // 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 |