[llvm] [AArch64][LV][SLP] Vectorizers use getFRemInstrCost for frem costs (PR #82488)

Paul Walker via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 23 08:51:07 PST 2024


================
@@ -8616,6 +8616,13 @@ BoUpSLP::getEntryCost(const TreeEntry *E, ArrayRef<Value *> VectorizedVals,
       unsigned OpIdx = isa<UnaryOperator>(VL0) ? 0 : 1;
       TTI::OperandValueInfo Op1Info = getOperandInfo(E->getOperand(0));
       TTI::OperandValueInfo Op2Info = getOperandInfo(E->getOperand(OpIdx));
+
+      // Some targets replace frem with vector library calls.
----------------
paulwalker-arm wrote:

As above, the comment is unnecessary.

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


More information about the llvm-commits mailing list