[llvm] [LV] Commonise some of the VPReplicateRecipe cost cases (PR #204812)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 20 01:35:30 PDT 2026


================
@@ -3820,9 +3820,6 @@ InstructionCost VPReplicateRecipe::computeCost(ElementCount VF,
   case Instruction::Xor:
   case Instruction::ICmp:
   case Instruction::FCmp:
----------------
artagnon wrote:

These opcodes aren't predicated, and hence the change is to add the extra factor `Ctx.getScalarizationOverhead(this->getScalarType(), to_vector(operands()), VF)`, if I understand correctly? Is this untestable?

https://github.com/llvm/llvm-project/pull/204812


More information about the llvm-commits mailing list