Skip to content

Commit 0f28142

Browse files
committed
Fix the bug from unit tests.
******************** Failed Tests (2): LLVM-Unit :: Transforms/Vectorize/./VectorizeTests/21/51 LLVM-Unit :: Transforms/Vectorize/./VectorizeTests/26/51
1 parent b0b5009 commit 0f28142

File tree

1 file changed

+1
-1
lines changed
  • llvm/lib/Transforms/Vectorize

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2233,7 +2233,7 @@ class VPReductionEVLRecipe : public VPReductionRecipe {
22332233
VPReductionEVLRecipe(VPReductionRecipe *R, VPValue *EVL, VPValue *CondOp)
22342234
: VPReductionRecipe(
22352235
VPDef::VPReductionEVLSC, R->getRecurrenceDescriptor(),
2236-
R->getUnderlyingInstr(),
2236+
cast_or_null<Instruction>(R->getUnderlyingValue()),
22372237
ArrayRef<VPValue *>({R->getChainOp(), R->getVecOp(), EVL}), CondOp,
22382238
R->isOrdered()) {}
22392239

0 commit comments

Comments
 (0)