[llvm] 94f5d73 - [SimplifyCFG] fix formatting; NFC

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 13 11:18:42 PDT 2020


Author: Sanjay Patel
Date: 2020-03-13T14:12:28-04:00
New Revision: 94f5d73182f33fd2505781b5d6fa40d7fd8847eb

URL: https://github.com/llvm/llvm-project/commit/94f5d73182f33fd2505781b5d6fa40d7fd8847eb
DIFF: https://github.com/llvm/llvm-project/commit/94f5d73182f33fd2505781b5d6fa40d7fd8847eb.diff

LOG: [SimplifyCFG] fix formatting; NFC

Added: 
    

Modified: 
    llvm/lib/Transforms/Utils/SimplifyCFG.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index c381d3618032..36358ef34fd0 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);
   }


        


More information about the llvm-commits mailing list