[Mlir-commits] [mlir] [MLIR][RemoveDeadValues] Mark arguments of a public function Live (PR #160242)
Mehdi Amini
llvmlistbot at llvm.org
Thu Sep 25 03:06:53 PDT 2025
================
@@ -852,8 +887,13 @@ void RemoveDeadValues::runOnOperation() {
} else if (isa<CallOpInterface>(op)) {
// Nothing to do because this op is associated with a function op and gets
// cleaned when the latter is cleaned.
+ //
+ // The only exception is public callee. By default, Liveness analysis is inter-procedural.
+ // Unused arguments of a public function nonLive and are propagated to the caller.
+ // processCallOp puts them to liveVals.
----------------
joker-eph wrote:
@navyxliu fixing liveness analysis makes more sense to me.
https://github.com/llvm/llvm-project/pull/160242
More information about the Mlir-commits
mailing list