summaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Vectorize/VPlan.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2021-02-19 18:11:39 +0100
committerBenjamin Kramer <benny.kra@googlemail.com>2021-02-19 18:11:39 +0100
commit59f442e6bb7314d8efad1a8e7d9c84f29a873be6 (patch)
tree247e8e6e0ed381df850e6b0821c0138374fe2d48 /llvm/lib/Transforms/Vectorize/VPlan.cpp
parent71a8e4e7d6b947c8b954ec0763ff7969b3879d7b (diff)
[LV] Fold single-use variable into assert. NFC.
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/VPlan.cpp')
-rw-r--r--llvm/lib/Transforms/Vectorize/VPlan.cpp4
1 files changed, 2 insertions, 2 deletions
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