From 94f5d73182f33fd2505781b5d6fa40d7fd8847eb Mon Sep 17 00:00:00 2001 From: Sanjay Patel Date: Fri, 13 Mar 2020 13:40:53 -0400 Subject: [PATCH] [SimplifyCFG] fix formatting; NFC --- llvm/lib/Transforms/Utils/SimplifyCFG.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp index c381d36..36358ef 100644 --- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp @@ -2132,13 +2132,12 @@ static bool SpeculativelyExecuteBB(BranchInst *BI, BasicBlock *ThenBB, continue; // Create a select whose true value is the speculatively executed value and - // false value is the preexisting value. Swap them if the branch + // false value is the pre-existing value. Swap them if the branch // destinations were inverted. Value *TrueV = ThenV, *FalseV = OrigV; if (Invert) std::swap(TrueV, FalseV); - Value *V = Builder.CreateSelect( - BrCond, TrueV, FalseV, "spec.select", BI); + Value *V = Builder.CreateSelect(BrCond, TrueV, FalseV, "spec.select", BI); PN.setIncomingValue(OrigI, V); PN.setIncomingValue(ThenI, V); } -- 2.7.4