[llvm] 0a16c56 - [OpenMP][NFC] Improve debug output
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 22 22:05:21 PDT 2021
Author: Johannes Doerfert
Date: 2021-09-23T00:04:29-05:00
New Revision: 0a16c560102212f5b317e646486b6826847334ca
URL: https://github.com/llvm/llvm-project/commit/0a16c560102212f5b317e646486b6826847334ca
DIFF: https://github.com/llvm/llvm-project/commit/0a16c560102212f5b317e646486b6826847334ca.diff
LOG: [OpenMP][NFC] Improve debug output
Added:
Modified:
llvm/lib/Transforms/IPO/OpenMPOpt.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/IPO/OpenMPOpt.cpp b/llvm/lib/Transforms/IPO/OpenMPOpt.cpp
index 11db2ad0727f8..8ae0780c590dd 100644
--- a/llvm/lib/Transforms/IPO/OpenMPOpt.cpp
+++ b/llvm/lib/Transforms/IPO/OpenMPOpt.cpp
@@ -2830,7 +2830,11 @@ struct AAKernelInfo : public StateWrapper<KernelInfoState, AbstractAttribute> {
std::string(" #PRs: ") +
std::to_string(ReachedKnownParallelRegions.size()) +
", #Unknown PRs: " +
- std::to_string(ReachedUnknownParallelRegions.size());
+ std::to_string(ReachedUnknownParallelRegions.size()) +
+ ", #Reaching Kernels: " +
+ (ReachingKernelEntries.isValidState()
+ ? std::to_string(ReachingKernelEntries.size())
+ : "<invalid>");
}
/// Create an abstract attribute biew for the position \p IRP.
More information about the llvm-commits
mailing list