Skip to content

Commit 13d8f00

Browse files
committed
[OpenMP][NFC] Improve debug message for shared memory
Summary: Make the debug message for HeapToShared more helpful by showing the actual call.
1 parent ebc01bb commit 13d8f00

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/Transforms/IPO/OpenMPOpt.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2712,9 +2712,8 @@ struct AAHeapToSharedFunction : public AAHeapToShared {
27122712

27132713
ConstantInt *AllocSize = dyn_cast<ConstantInt>(CB->getArgOperand(0));
27142714

2715-
LLVM_DEBUG(dbgs() << TAG << "Replace globalization call in "
2716-
<< CB->getCaller()->getName() << " with "
2717-
<< AllocSize->getZExtValue()
2715+
LLVM_DEBUG(dbgs() << TAG << "Replace globalization call " << *CB
2716+
<< " with " << AllocSize->getZExtValue()
27182717
<< " bytes of shared memory\n");
27192718

27202719
// Create a new shared memory buffer of the same size as the allocation

0 commit comments

Comments
 (0)