[Mlir-commits] [mlir] [MLIR] Prevent invalid IR from being passed outside of RemoveDeadValues (PR #121079)
Andrzej Warzyński
llvmlistbot at llvm.org
Tue Dec 31 09:11:09 PST 2024
================
@@ -617,23 +719,33 @@ void RemoveDeadValues::runOnOperation() {
auto &la = getAnalysis<RunLivenessAnalysis>();
Operation *module = getOperation();
+ // Tracks values eligible for erasure - complements liveness analysis to
+ // identify "droppable" values.
+ DenseSet<Value> deletionSet;
+
+ // Maintains a list of Ops, values, branches, etc., slated for cleanup at the
+ // end of this pass.
+ CleanupList cl;
----------------
banach-space wrote:
Some people (myself included), associate `cl` with https://llvm.org/docs/CommandLine.html. Also, it's not a very descriptive. Perhaps `deadValsList`? Or just `deadVals`? But then there's more than just `Value`s 🤔 `finalCleanUpList`? Naming is hard.
https://github.com/llvm/llvm-project/pull/121079
More information about the Mlir-commits
mailing list