[llvm] [LV][AArch64] LoopVectorizer allows scalable frem instructions (PR #76247)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 4 03:56:42 PST 2024


================
@@ -7142,6 +7142,19 @@ LoopVectorizationCostModel::getInstructionCost(Instruction *I, ElementCount VF,
         Legal->isInvariant(Op2))
       Op2Info.Kind = TargetTransformInfo::OK_UniformValue;
 
+    // Some targets replace frem with vector library calls.
+    if (I->getOpcode() == Instruction::FRem && VectorTy->isScalableTy()) {
----------------
fhahn wrote:

Why limit to scalable types?

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


More information about the llvm-commits mailing list