Skip to content

Commit

Permalink
[LV] Fold single-use variable into assert. NFC.
Browse files Browse the repository at this point in the history
  • Loading branch information
d0k committed Feb 19, 2021
1 parent 71a8e4e commit 59f442e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/Transforms/Vectorize/VPlan.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 59f442e

Please sign in to comment.