[Mlir-commits] [mlir] [MLIR] Add folding constants canonicalization for mlir::index::AddOp. (PR #111084)
weiwei chen
llvmlistbot at llvm.org
Tue Oct 8 07:41:53 PDT 2024
================
@@ -136,6 +136,45 @@ OpFoldResult AddOp::fold(FoldAdaptor adaptor) {
return {};
}
+/// Canonicalize
+/// ` x = v + c1; y = x + c2` to `x = v + (c1 + c2)`
----------------
weiweichen wrote:
oh, good to know, PR updated!
https://github.com/llvm/llvm-project/pull/111084
More information about the Mlir-commits
mailing list