[llvm] [AArch64][CostModel] Alter sdiv/srem cost where the divisor is constant (PR #123552)
Sushant Gokhale via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 27 02:57:49 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
----------------
sushgokh wrote:
This is issue with the vector division as well where operand can be undef as can be seen for this case. So, is it fair to bail out if any of the operands is undef/poison ?
https://github.com/llvm/llvm-project/pull/123552
More information about the llvm-commits
mailing list