[Mlir-commits] [mlir] [MLIR] Prevent invalid IR from being passed outside of RemoveDeadValues (PR #121079)
Andrzej WarzyĆski
llvmlistbot at llvm.org
Mon Dec 30 14:23:10 PST 2024
================
@@ -253,26 +311,27 @@ 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();
}
- // Do (4).
+ // Do (3).
----------------
banach-space wrote:
Hm, so (4) never happens?
https://github.com/llvm/llvm-project/pull/121079
More information about the Mlir-commits
mailing list