summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@codeaurora.org>2017-08-01 20:18:54 +0000
committerChad Rosier <mcrosier@codeaurora.org>2017-08-01 20:18:54 +0000
commitdfd1de687dd0665c507e0d6b9f819eb619135021 (patch)
tree2662d923e2bdf5202de759f73f2872c944043dd3 /llvm/lib/Transforms/Utils
parent31b52d635bd13df615ace815144e8bf0e4b45671 (diff)
downloadbcm5719-llvm-dfd1de687dd0665c507e0d6b9f819eb619135021.tar.gz
bcm5719-llvm-dfd1de687dd0665c507e0d6b9f819eb619135021.zip
[Value Tracking] Default argument to true and rename accordingly. NFC.
IMHO this is a bit more readable. llvm-svn: 309739
Diffstat (limited to 'llvm/lib/Transforms/Utils')
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyCFG.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index 6c9c44b1663..d89c5455799 100644
--- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -5761,9 +5761,9 @@ bool SimplifyCFGOpt::SimplifyCondBranch(BranchInst *BI, IRBuilder<> &Builder) {
if (PBI && PBI->isConditional() &&
PBI->getSuccessor(0) != PBI->getSuccessor(1)) {
assert(PBI->getSuccessor(0) == BB || PBI->getSuccessor(1) == BB);
- bool CondIsFalse = PBI->getSuccessor(1) == BB;
+ bool CondIsTrue = PBI->getSuccessor(0) == BB;
Optional<bool> Implication = isImpliedCondition(
- PBI->getCondition(), BI->getCondition(), DL, CondIsFalse);
+ PBI->getCondition(), BI->getCondition(), DL, CondIsTrue);
if (Implication) {
// Turn this into a branch on constant.
auto *OldCond = BI->getCondition();
OpenPOWER on IntegriCloud