[Mlir-commits] [mlir] [MLIR] Prevent invalid IR from being passed outside of RemoveDeadValues (PR #121079)

Andrzej WarzyƄski llvmlistbot at llvm.org
Thu Jan 2 08:02:26 PST 2025


================
@@ -253,7 +310,7 @@ static void cleanFuncOp(FunctionOpInterface funcOp, Operation *module,
   for (SymbolTable::SymbolUse use : uses) {
     Operation *callOp = use.getUser();
     assert(isa<CallOpInterface>(callOp) && "expected a call-like user");
-    BitVector liveCallRets = markLives(callOp->getResults(), la);
+    BitVector liveCallRets = markLives(callOp->getResults(), deletionSet, la);
     nonLiveRets &= liveCallRets.flip();
   }
 
----------------
banach-space wrote:

Your updated (4) from the comment says:
> ///   4. Enqueueing the non-live arguments themselves for removal.

Yet this block is handling "terminator" Ops?

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


More information about the Mlir-commits mailing list