Skip to content

Commit 22bb406

Browse files
committed
Address review comments
1 parent fe04fd2 commit 22bb406

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

llvm/include/llvm/Transforms/IPO/MemProfContextDisambiguation.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ class MemProfContextDisambiguation
6565
// Actually performs any needed ICP in the function, using the information
6666
// recorded in the ICallAnalysisInfo list.
6767
void performICP(Module &M, ArrayRef<CallsiteInfo> AllCallsites,
68-
SmallVectorImpl<std::unique_ptr<ValueToValueMapTy>> &VMaps,
69-
SmallVector<ICallAnalysisData> &ICallAnalysisInfo,
68+
ArrayRef<std::unique_ptr<ValueToValueMapTy>> VMaps,
69+
ArrayRef<ICallAnalysisData> ICallAnalysisInfo,
7070
OptimizationRemarkEmitter &ORE);
7171

7272
/// Import summary containing cloning decisions for the ThinLTO backend.

llvm/lib/Transforms/IPO/MemProfContextDisambiguation.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4482,8 +4482,8 @@ unsigned MemProfContextDisambiguation::recordICPInfo(
44824482

44834483
void MemProfContextDisambiguation::performICP(
44844484
Module &M, ArrayRef<CallsiteInfo> AllCallsites,
4485-
SmallVectorImpl<std::unique_ptr<ValueToValueMapTy>> &VMaps,
4486-
SmallVector<ICallAnalysisData> &ICallAnalysisInfo,
4485+
ArrayRef<std::unique_ptr<ValueToValueMapTy>> VMaps,
4486+
ArrayRef<ICallAnalysisData> ICallAnalysisInfo,
44874487
OptimizationRemarkEmitter &ORE) {
44884488
// Now do any promotion required for cloning. Specifically, for each
44894489
// recorded ICP candidate (which was only recorded because one clone of that
@@ -4513,7 +4513,7 @@ void MemProfContextDisambiguation::performICP(
45134513
if (TargetFunction == nullptr || TargetFunction->isDeclaration()) {
45144514
ORE.emit([&]() {
45154515
return OptimizationRemarkMissed(DEBUG_TYPE, "UnableToFindTarget", CB)
4516-
<< "Cannot promote indirect call: target with md5sum "
4516+
<< "Memprof cannot promote indirect call: target with md5sum "
45174517
<< ore::NV("target md5sum", Candidate.Value) << " not found";
45184518
});
45194519
// FIXME: See if we can use the new declaration importing support to
@@ -4527,7 +4527,7 @@ void MemProfContextDisambiguation::performICP(
45274527
if (!isLegalToPromote(*CB, TargetFunction, &Reason)) {
45284528
ORE.emit([&]() {
45294529
return OptimizationRemarkMissed(DEBUG_TYPE, "UnableToPromote", CB)
4530-
<< "Cannot promote indirect call to "
4530+
<< "Memprof cannot promote indirect call to "
45314531
<< ore::NV("TargetFunction", TargetFunction)
45324532
<< " with count of " << ore::NV("TotalCount", TotalCount)
45334533
<< ": " << Reason;

0 commit comments

Comments
 (0)