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

Matthias Springer llvmlistbot at llvm.org
Wed Feb 28 11:19:46 PST 2024


================
@@ -169,7 +169,10 @@ static SmallVector<OpOperand *> operandsToOpOperands(OperandRange operands) {
 /// Here, cleaning means:
 ///   (1) Dropping all its uses, AND
 ///   (2) Erasing it
-/// iff it has no memory effects and none of its results are live.
+/// iff:
+///   (1) It has no memory effects
+///   (2) None of its results are live
+///   (3) It is not used as an argument in a public function call
----------------
matthias-springer wrote:

Why does it matter whether the function is private or public?

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


More information about the Mlir-commits mailing list