[llvm] 13d8f00 - [OpenMP][NFC] Improve debug message for shared memory
Joseph Huber via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 18 09:01:03 PDT 2021
Author: Joseph Huber
Date: 2021-08-18T11:56:09-04:00
New Revision: 13d8f000d7271226e5dfc6c0dc25b91cf6233349
URL: https://github.com/llvm/llvm-project/commit/13d8f000d7271226e5dfc6c0dc25b91cf6233349
DIFF: https://github.com/llvm/llvm-project/commit/13d8f000d7271226e5dfc6c0dc25b91cf6233349.diff
LOG: [OpenMP][NFC] Improve debug message for shared memory
Summary:
Make the debug message for HeapToShared more helpful by showing the
actual call.
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 358799a53f64..c48ae6ec2f36 100644
--- a/llvm/lib/Transforms/IPO/OpenMPOpt.cpp
+++ b/llvm/lib/Transforms/IPO/OpenMPOpt.cpp
@@ -2712,9 +2712,8 @@ struct AAHeapToSharedFunction : public AAHeapToShared {
ConstantInt *AllocSize = dyn_cast<ConstantInt>(CB->getArgOperand(0));
- LLVM_DEBUG(dbgs() << TAG << "Replace globalization call in "
- << CB->getCaller()->getName() << " with "
- << AllocSize->getZExtValue()
+ LLVM_DEBUG(dbgs() << TAG << "Replace globalization call " << *CB
+ << " with " << AllocSize->getZExtValue()
<< " bytes of shared memory\n");
// Create a new shared memory buffer of the same size as the allocation
More information about the llvm-commits
mailing list