[Mlir-commits] [mlir] [mlir][Affine] Add nuw/nsw to lowering of	affine ops. (PR #121535)
    Krzysztof Drewniak 
    llvmlistbot at llvm.org
       
    Thu Jan  2 23:42:08 PST 2025
    
    
  
================
@@ -178,8 +181,9 @@ class AffineApplyExpander
     Value quotient = builder.create<arith::DivSIOp>(loc, dividend, rhs);
     Value negatedQuotient =
         builder.create<arith::SubIOp>(loc, zeroCst, quotient);
-    Value incrementedQuotient =
-        builder.create<arith::AddIOp>(loc, quotient, oneCst);
+    Value incrementedQuotient = builder.create<arith::AddIOp>(
----------------
krzysz00 wrote:
I don't have the detailed proof on me, but I suspect that this is going to fail on `quotient = -1`
https://github.com/llvm/llvm-project/pull/121535
    
    
More information about the Mlir-commits
mailing list