[llvm] [llvm/llvm-project][Coroutines] Improve debugging and minor refactoring (PR #104642)
Tyler Nowicki via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 22 10:43:53 PDT 2024
================
@@ -52,6 +53,16 @@ extern cl::opt<bool> UseNewDbgInfoFormat;
enum { SmallVectorThreshold = 32 };
+static std::string getBasicBlockLabel(const BasicBlock *BB) {
+ if (BB->hasName())
+ return BB->getName().str();
----------------
TylerNowicki wrote:
For example, when print remat right now I realized it is using BB->printAsOperand(dbgs(), false) but that results in output like
Entry (%1122) : %1182 = call ...
So the % is a bit confusing there.
https://github.com/llvm/llvm-project/pull/104642
More information about the llvm-commits
mailing list