[llvm] [DAG] Fold urem(urem(A, BCst), Op1Cst) -> urem(A, Op1Cst) (PR #159517)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 18 05:28:48 PDT 2025


================
@@ -0,0 +1,69 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc -mtriple=riscv32 -verify-machineinstrs < %s \
+; RUN:   | FileCheck -check-prefixes=CHECK,RV32I %s
+; RUN: llc -mtriple=riscv64 -verify-machineinstrs < %s \
+; RUN:   | FileCheck -check-prefixes=CHECK,RV64I %s
+
+define i32 @fold_srem_constants(i32 %v0) {
----------------
RKSimon wrote:

add nounwind to get rid of all the cfi noise

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


More information about the llvm-commits mailing list