[Mlir-commits] [mlir] [mlir][arith] Mark `arith.remsi` and `arith.remui` as conditionally speculatable (PR #188263)

Matthias Springer llvmlistbot at llvm.org
Tue Mar 24 10:47:35 PDT 2026


================
@@ -954,6 +958,10 @@ OpFoldResult arith::RemSIOp::fold(FoldAdaptor adaptor) {
   return div0 ? Attribute() : result;
 }
 
+Speculation::Speculatability arith::RemSIOp::getSpeculatability() {
+  return getDivSISpeculatability(getRhs());
----------------
matthias-springer wrote:

Good point!

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


More information about the Mlir-commits mailing list