[Mlir-commits] [mlir] [mlir][Transforms] --remove-dead-values: keep values used in public function calls (PR #83249)

Artem Tyurin llvmlistbot at llvm.org
Wed Feb 28 12:12:01 PST 2024


================
@@ -178,6 +181,17 @@ static void cleanSimpleOp(Operation *op, RunLivenessAnalysis &la) {
   if (!isMemoryEffectFree(op) || hasLive(op->getResults(), la))
----------------
agentcooper wrote:

>From what I understand, if the parameter is not used inside the function, the value (argument) will not be considered "alive".

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


More information about the Mlir-commits mailing list