[llvm] [llvm/llvm-project][Coroutines] Improve debugging and minor refactoring (PR #104642)
Tyler Nowicki via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 4 16:03:40 PDT 2024
================
@@ -418,10 +440,7 @@ struct RematGraph {
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
void dump() const {
dbgs() << "Entry (";
- if (EntryNode->Node->getParent()->hasName())
- dbgs() << EntryNode->Node->getParent()->getName();
- else
- EntryNode->Node->getParent()->printAsOperand(dbgs(), false);
+ dbgs() << getBasicBlockLabel(EntryNode->Node->getParent());
----------------
TylerNowicki wrote:
FYI I have a change queued up to address the str copies
https://github.com/TylerNowicki/llvm-project/pull/8
https://github.com/llvm/llvm-project/pull/104642
More information about the llvm-commits
mailing list