[llvm] [RISCV] Cost UDIV/UREM by a constant power of 2 as a SHL/AND in getArithmeticInstrCost() (PR #179570)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 17 02:54:59 PDT 2026


================
@@ -1700,3 +1700,26 @@ define i32 @xor() {
   xor <vscale x 8 x i64> undef, undef
   ret i32 undef
 }
+
+define void @transforms() {
----------------
lukel97 wrote:

Can we add some tests for fixed vectors? With some uniform and non-uniform divisors too

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


More information about the llvm-commits mailing list