[Mlir-commits] [mlir] [MLIR] Add logging/tracing to DataFlow analysis and RemoveDeadValues (NFC) (PR #144695)
Oleksandr Alex Zinenko
llvmlistbot at llvm.org
Fri Jun 20 00:31:48 PDT 2025
================
@@ -115,12 +118,27 @@ struct RDVFinalCleanupList {
static bool hasLive(ValueRange values, const DenseSet<Value> &nonLiveSet,
RunLivenessAnalysis &la) {
for (Value value : values) {
- if (nonLiveSet.contains(value))
+ if (nonLiveSet.contains(value)) {
+ LLVM_DEBUG(llvm::dbgs() << "RDV: Value " << value
+ << " is already marked non-live (dead)\n");
----------------
ftynse wrote:
It is wrong in details, but right in spirit. In some places, we did `#define DBGS llvm::dbgs() << "[" DEBUG_TYPE "] "`, usable as `LLVM_DEBUG(DBGS() << "foobar")`. This makes it easy to filter logs and somewhat reduces the repetitive of the message.
https://github.com/llvm/llvm-project/pull/144695
More information about the Mlir-commits
mailing list