Skip to content

Commit d7e5191

Browse files
committed
Fix crash in release build
1 parent 02f8262 commit d7e5191

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2798,11 +2798,12 @@ void VPlanTransforms::adjustFFLoadEarlyExitForPoisonSafety(VPlan &Plan) {
27982798

27992799
VPValue *VPAnyOf = nullptr;
28002800
VPValue *VecOp = nullptr;
2801-
assert(
2801+
[[maybe_unused]] bool IsExitingOnAnyOfOr =
28022802
match(LatchExitingBr,
28032803
m_BranchOnCond(m_BinaryOr(m_VPValue(VPAnyOf), m_VPValue()))) &&
2804-
match(VPAnyOf, m_VPInstruction<VPInstruction::AnyOf>(m_VPValue(VecOp))) &&
2805-
"unexpected exiting sequence in early exit loop");
2804+
match(VPAnyOf, m_VPInstruction<VPInstruction::AnyOf>(m_VPValue(VecOp)));
2805+
assert(IsExitingOnAnyOfOr &&
2806+
"unexpected exiting sequence in early exit loop");
28062807

28072808
VPValue *OpVPEVLI32 = LastFFLoad->getVPValue(1);
28082809
VPValue *Mask = LastFFLoad->getMask();

0 commit comments

Comments
 (0)