Skip to content

Commit 96d62b3

Browse files
Update llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
Remove unnecessary else Co-authored-by: Alexey Bataev <[email protected]>
1 parent 9da07d1 commit 96d62b3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2572,11 +2572,11 @@ InstructionCost VPWidenMemoryRecipe::computeCost(ElementCount VF,
25722572
return Ctx.TTI.getStridedMemoryOpCost(Ingredient.getOpcode(), Ty, Ptr,
25732573
IsMasked, Alignment, Ctx.CostKind,
25742574
&Ingredient);
2575-
else
2576-
return Ctx.TTI.getAddressComputationCost(Ty) +
2577-
Ctx.TTI.getGatherScatterOpCost(Ingredient.getOpcode(), Ty, Ptr,
2578-
IsMasked, Alignment, Ctx.CostKind,
2579-
&Ingredient);
2575+
2576+
return Ctx.TTI.getAddressComputationCost(Ty) +
2577+
Ctx.TTI.getGatherScatterOpCost(Ingredient.getOpcode(), Ty, Ptr,
2578+
IsMasked, Alignment, Ctx.CostKind,
2579+
&Ingredient);
25802580
}
25812581

25822582
InstructionCost Cost = 0;

0 commit comments

Comments
 (0)