[llvm] [AArch64][CostModel] Alter sdiv/srem cost where the divisor is constant (PR #123552)
David Green via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 24 00:21:59 PST 2025
================
@@ -5,29 +5,29 @@ target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
define i32 @srem() {
; CHECK-LABEL: 'srem'
-; CHECK-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %I128 = srem i128 undef, undef
----------------
davemgreen wrote:
We will probably need the `if (Ty->isVectorTy() && (ISD == ISD::SDIV || ISD == ISD::UDIV)) {` line from #122236, to make sure that the non-constant versions are not affected.
https://github.com/llvm/llvm-project/pull/123552
More information about the llvm-commits
mailing list