[llvm] fa9d8ac - [CGSCC] Print CG node itself instead of its address
Bardia Mahjour via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 17 09:39:15 PDT 2021
Author: Bardia Mahjour
Date: 2021-03-17T12:36:55-04:00
New Revision: fa9d8ace09b42e3343519f80c1854e6b9bb437e1
URL: https://github.com/llvm/llvm-project/commit/fa9d8ace09b42e3343519f80c1854e6b9bb437e1
DIFF: https://github.com/llvm/llvm-project/commit/fa9d8ace09b42e3343519f80c1854e6b9bb437e1.diff
LOG: [CGSCC] Print CG node itself instead of its address
Fix the debug output from cgscc
Added:
Modified:
llvm/lib/Analysis/CGSCCPassManager.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/CGSCCPassManager.cpp b/llvm/lib/Analysis/CGSCCPassManager.cpp
index 0a05c3c875e0..9dc62b877ae2 100644
--- a/llvm/lib/Analysis/CGSCCPassManager.cpp
+++ b/llvm/lib/Analysis/CGSCCPassManager.cpp
@@ -1043,9 +1043,9 @@ static LazyCallGraph::SCC &updateCGAndAnalysisManagerForPass(
if (&TargetRC == RC)
return false;
- RC->removeOutgoingEdge(N, *TargetN);
LLVM_DEBUG(dbgs() << "Deleting outgoing edge from '" << N << "' to '"
- << TargetN << "'\n");
+ << *TargetN << "'\n");
+ RC->removeOutgoingEdge(N, *TargetN);
return true;
});
More information about the llvm-commits
mailing list