[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:25 PST 2025
================
@@ -165,52 +214,59 @@ static SmallVector<OpOperand *> operandsToOpOperands(OperandRange operands) {
return opOperands;
}
-/// Clean a simple op `op`, given the liveness analysis information in `la`.
-/// 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.
+/// Process a simple operation `op` using the liveness analysis `la`.
+/// If the operation has no memory effects and none of its results are live:
+/// 1. Adding the operation to a list for future removal, and
+/// 2. Marking all its results as non-live values
----------------
banach-space wrote:
```suggestion
/// 1. Add the operation to a list for future removal, and
/// 2. Mark all its results as non-live values
```
https://github.com/llvm/llvm-project/pull/121079
More information about the Mlir-commits
mailing list