Skip to content

Commit 0f8cfb4

Browse files
committed
[Fix] Set Opcode as Instruction::Load directly.
1 parent 78fc57e commit 0f8cfb4

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
@@ -2712,7 +2712,7 @@ void VPlanTransforms::convertToStridedAccesses(VPlan &Plan, VPCostContext &Ctx,
27122712
const InstructionCost CurrentCost = MemR->computeCost(VF, Ctx);
27132713
const InstructionCost StridedLoadStoreCost =
27142714
Ctx.TTI.getStridedMemoryOpCost(
2715-
Ingredient.getOpcode(), DataTy,
2715+
Instruction::Load, DataTy,
27162716
getLoadStorePointerOperand(&Ingredient), MemR->isMasked(),
27172717
Alignment, Ctx.CostKind, &Ingredient);
27182718
return StridedLoadStoreCost < CurrentCost;

0 commit comments

Comments
 (0)