================
@@ -1885,6 +1885,29 @@ mlir::LogicalResult cir::ReturnOp::verify() {
   return success();
 }
 
+static void getFunctionExitEffects(
+    mlir::Operation *op,
+    llvm::SmallVectorImpl<mlir::MemoryEffects::EffectInstance> &effects) {
+  if (isa_and_nonnull<cir::FuncOp>(op->getParentOp()))
----------------
xlauko wrote:

Which in-tree transform benefits from the function-level case being pure? A 
terminator directly in `cir.func` is never a DCE candidate. If the only user is 
Enzyme, it's hard to justify upstream.

https://github.com/llvm/llvm-project/pull/242180
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to