|
69 | 69 |
|
70 | 70 | ; RUN: split-file %s %t
|
71 | 71 |
|
72 |
| -; RUN: opt -thinlto-bc %t/main.ll >%t/main.o |
73 |
| -; RUN: opt -thinlto-bc %t/foo.ll >%t/foo.o |
| 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 |
74 | 75 |
|
75 | 76 | ;; Check that we get the synthesized callsite records. There should be 2, one
|
76 | 77 | ;; for each profiled target in the VP metadata. They will have the same stackIds
|
|
82 | 83 | ;; -enable-memprof-indirect-call-support flag is false.
|
83 | 84 | ; RUN: opt -thinlto-bc %t/foo.ll -enable-memprof-indirect-call-support=false >%t/foo.noicp.o
|
84 | 85 | ; 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)" |
85 | 88 |
|
86 | 89 | ;; First perform in-process ThinLTO
|
87 | 90 | ; RUN: llvm-lto2 run %t/main.o %t/foo.o -enable-memprof-context-disambiguation \
|
| 91 | +; RUN: -enable-memprof-indirect-call-support=true \ |
88 | 92 | ; RUN: -supports-hot-cold-new \
|
89 | 93 | ; RUN: -r=%t/foo.o,_Z3fooR2B0j,plx \
|
90 | 94 | ; RUN: -r=%t/foo.o,_Z3xyzR2B0j, \
|
|
138 | 142 |
|
139 | 143 | ;; Run ThinLTO backend
|
140 | 144 | ; RUN: opt -import-all-index -passes=function-import,memprof-context-disambiguation,inline \
|
| 145 | +; RUN: -enable-memprof-indirect-call-support=true \ |
141 | 146 | ; RUN: -summary-file=%t/foo.o.thinlto.bc -memprof-import-summary=%t/foo.o.thinlto.bc \
|
142 | 147 | ; RUN: -enable-import-metadata -stats -pass-remarks=. \
|
143 | 148 | ; RUN: %t/foo.o -S 2>&1 | FileCheck %s --check-prefix=IR \
|
|
0 commit comments