Skip to content

Commit 9490d58

Browse files
Revert "[VPlan] Compute cost of scalar (U|S)Div, (U|S)Rem in computeCost (NFCI)."
This reverts commit de7e3a5. This broke quite a few upstream buildbots and premerge. Reverting for now to get things back to green. https://lab.llvm.org/buildbot/#/builders/137/builds/25467
1 parent 4abcbb0 commit 9490d58

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3151,23 +3151,9 @@ InstructionCost VPReplicateRecipe::computeCost(ElementCount VF,
31513151
case Instruction::Xor:
31523152
case Instruction::ICmp:
31533153
case Instruction::FCmp:
3154-
case Instruction::Select:
31553154
return *getCostForRecipeWithOpcode(getOpcode(), ElementCount::getFixed(1),
31563155
Ctx) *
31573156
(isSingleScalar() ? 1 : VF.getFixedValue());
3158-
case Instruction::SDiv:
3159-
case Instruction::UDiv:
3160-
case Instruction::SRem:
3161-
case Instruction::URem: {
3162-
InstructionCost ScalarCost = *getCostForRecipeWithOpcode(
3163-
getOpcode(), ElementCount::getFixed(1), Ctx);
3164-
if (isSingleScalar())
3165-
return ScalarCost;
3166-
3167-
return ScalarCost * VF.getFixedValue() +
3168-
Ctx.getScalarizationOverhead(Ctx.Types.inferScalarType(this),
3169-
to_vector(operands()), VF);
3170-
}
31713157
case Instruction::Load:
31723158
case Instruction::Store: {
31733159
if (isSingleScalar()) {

0 commit comments

Comments
 (0)