[LV] Fold single-use variable into assert. NFC.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 19 Feb 2021 17:11:39 +0000 (18:11 +0100)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 19 Feb 2021 17:11:39 +0000 (18:11 +0100)
llvm/lib/Transforms/Vectorize/VPlan.cpp

index 50edd32e293e8016093c1de8a1284d78b599f0bd..973f165359dd22327728db5c5baec94c6fa01c9d 100644 (file)
@@ -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