[llvm] 59f442e - [LV] Fold single-use variable into assert. NFC.

Benjamin Kramer via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 19 09:12:09 PST 2021


Author: Benjamin Kramer
Date: 2021-02-19T18:11:39+01:00
New Revision: 59f442e6bb7314d8efad1a8e7d9c84f29a873be6

URL: https://github.com/llvm/llvm-project/commit/59f442e6bb7314d8efad1a8e7d9c84f29a873be6
DIFF: https://github.com/llvm/llvm-project/commit/59f442e6bb7314d8efad1a8e7d9c84f29a873be6.diff

LOG: [LV] Fold single-use variable into assert. NFC.

Added: 
    

Modified: 
    llvm/lib/Transforms/Vectorize/VPlan.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Vectorize/VPlan.cpp b/llvm/lib/Transforms/Vectorize/VPlan.cpp
index 50edd32e293e..973f165359dd 100644
--- a/llvm/lib/Transforms/Vectorize/VPlan.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlan.cpp
@@ -298,8 +298,8 @@ void VPBasicBlock::execute(VPTransformState *State) {
 
   VPValue *CBV;
   if (EnableVPlanNativePath && (CBV = getCondBit())) {
-    Value *IRCBV = CBV->getUnderlyingValue();
-    assert(IRCBV && "Unexpected null underlying value for condition bit");
+    assert(CBV->getUnderlyingValue() &&
+           "Unexpected null underlying value for condition bit");
 
     // Condition bit value in a VPBasicBlock is used as the branch selector. In
     // the VPlan-native path case, since all branches are uniform we generate a


        


More information about the llvm-commits mailing list