Skip to content

Commit 025f530

Browse files
committed
[Fix] Set Opcode as Instruction::Load directly.
1 parent 48c61d5 commit 025f530

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2547,7 +2547,7 @@ void VPlanTransforms::convertToStridedAccesses(VPlan &Plan, VPCostContext &Ctx,
25472547
const InstructionCost CurrentCost = MemR->computeCost(VF, Ctx);
25482548
const InstructionCost StridedLoadStoreCost =
25492549
Ctx.TTI.getStridedMemoryOpCost(
2550-
Ingredient.getOpcode(), DataTy,
2550+
Instruction::Load, DataTy,
25512551
getLoadStorePointerOperand(&Ingredient), MemR->isMasked(),
25522552
Alignment, Ctx.CostKind, &Ingredient);
25532553
return StridedLoadStoreCost < CurrentCost;

0 commit comments

Comments
 (0)