[flang-commits] [flang] [Flang][CodeGen] Rematerialize pure ops with impure implementation (PR #196352)

via flang-commits flang-commits at lists.llvm.org
Mon May 11 06:34:45 PDT 2026


================
@@ -62,6 +62,18 @@ def CodeGenRewrite : Pass<"cg-rewrite", "mlir::ModuleOp"> {
   ];
 }
 
+def RematerializeFIRBoxOpsPass
+    : Pass<"fir-rematerialize-box-ops", "mlir::ModuleOp"> {
----------------
jeanPerier wrote:

Could this be a pass operating on "::mlir::func::FuncOp" instead?

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


More information about the flang-commits mailing list