Skip to content

Commit d6976d0

Browse files
[MemProf] Enable memprof ICP support by default (#132625)
This was disabled by default earlier while some failures were investigated and ultimately fixed. It has been tested more extensively since and can be enabled by default.
1 parent 0e63180 commit d6976d0

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

llvm/lib/Analysis/ModuleSummaryAnalysis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ static cl::opt<std::string> ModuleSummaryDotFile(
8181
cl::desc("File to emit dot graph of new summary into"));
8282

8383
static cl::opt<bool> EnableMemProfIndirectCallSupport(
84-
"enable-memprof-indirect-call-support", cl::init(false), cl::Hidden,
84+
"enable-memprof-indirect-call-support", cl::init(true), cl::Hidden,
8585
cl::desc(
8686
"Enable MemProf support for summarizing and cloning indirect calls"));
8787

llvm/test/ThinLTO/X86/memprof-icp.ll

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,8 @@
6969

7070
; RUN: split-file %s %t
7171

72-
;; For now explicitly turn on this handling, which is off by default.
73-
; RUN: opt -thinlto-bc %t/main.ll -enable-memprof-indirect-call-support=true >%t/main.o
74-
; RUN: opt -thinlto-bc %t/foo.ll -enable-memprof-indirect-call-support=true >%t/foo.o
72+
; RUN: opt -thinlto-bc %t/main.ll >%t/main.o
73+
; RUN: opt -thinlto-bc %t/foo.ll >%t/foo.o
7574

7675
;; Check that we get the synthesized callsite records. There should be 2, one
7776
;; for each profiled target in the VP metadata. They will have the same stackIds
@@ -83,8 +82,6 @@
8382
;; -enable-memprof-indirect-call-support flag is false.
8483
; RUN: opt -thinlto-bc %t/foo.ll -enable-memprof-indirect-call-support=false >%t/foo.noicp.o
8584
; RUN: llvm-dis %t/foo.noicp.o -o - | FileCheck %s --implicit-check-not "stackIds: (16345663650247127235)"
86-
;; Currently this should be off by default as well.
87-
; RUN: opt -thinlto-bc %t/foo.ll -o - | llvm-dis -o - | FileCheck %s --implicit-check-not "stackIds: (16345663650247127235)"
8885

8986
;; First perform in-process ThinLTO
9087
; RUN: llvm-lto2 run %t/main.o %t/foo.o -enable-memprof-context-disambiguation \

0 commit comments

Comments
 (0)