Skip to content

Commit fb017a5

Browse files
committed
[VPlan] Use load/store opcode for VPWiden(Load|Store)EVLRecipe (NFC).
Removes unnecessary uses of Ingredient.
1 parent 8bec5e5 commit fb017a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3010,7 +3010,7 @@ InstructionCost VPWidenLoadEVLRecipe::computeCost(ElementCount VF,
30103010
unsigned AS =
30113011
getLoadStoreAddressSpace(const_cast<Instruction *>(&Ingredient));
30123012
InstructionCost Cost = Ctx.TTI.getMaskedMemoryOpCost(
3013-
Ingredient.getOpcode(), Ty, Alignment, AS, Ctx.CostKind);
3013+
Instruction::Load, Ty, Alignment, AS, Ctx.CostKind);
30143014
if (!Reverse)
30153015
return Cost;
30163016

@@ -3125,7 +3125,7 @@ InstructionCost VPWidenStoreEVLRecipe::computeCost(ElementCount VF,
31253125
unsigned AS =
31263126
getLoadStoreAddressSpace(const_cast<Instruction *>(&Ingredient));
31273127
InstructionCost Cost = Ctx.TTI.getMaskedMemoryOpCost(
3128-
Ingredient.getOpcode(), Ty, Alignment, AS, Ctx.CostKind);
3128+
Instruction::Store, Ty, Alignment, AS, Ctx.CostKind);
31293129
if (!Reverse)
31303130
return Cost;
31313131

0 commit comments

Comments
 (0)