[llvm] e67f148 - [Attributor][NFC] Improve debug messages
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 2 02:28:45 PST 2023
Author: Johannes Doerfert
Date: 2023-02-02T02:28:15-08:00
New Revision: e67f1480232ee389d0988d10d733bf45c5665a11
URL: https://github.com/llvm/llvm-project/commit/e67f1480232ee389d0988d10d733bf45c5665a11
DIFF: https://github.com/llvm/llvm-project/commit/e67f1480232ee389d0988d10d733bf45c5665a11.diff
LOG: [Attributor][NFC] Improve debug messages
Added:
Modified:
llvm/lib/Transforms/IPO/AttributorAttributes.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp
index 9c1e0466ccec..2730adf1086a 100644
--- a/llvm/lib/Transforms/IPO/AttributorAttributes.cpp
+++ b/llvm/lib/Transforms/IPO/AttributorAttributes.cpp
@@ -1349,7 +1349,10 @@ struct AAPointerInfoImpl
O << " --> " << *Acc.getRemoteInst()
<< "\n";
if (!Acc.isWrittenValueYetUndetermined()) {
- if (Acc.getWrittenValue())
+ if (isa_and_nonnull<Function>(Acc.getWrittenValue()))
+ O << " - c: func " << Acc.getWrittenValue()->getName()
+ << "\n";
+ else if (Acc.getWrittenValue())
O << " - c: " << *Acc.getWrittenValue() << "\n";
else
O << " - c: <unknown>\n";
More information about the llvm-commits
mailing list