diff options
author | Teresa Johnson <tejohnson@google.com> | 2023-05-02 13:03:41 -0700 |
---|---|---|
committer | Teresa Johnson <tejohnson@google.com> | 2023-05-02 15:19:34 -0700 |
commit | a4bdb27538c3bc5b757976e47d663e63880451e3 (patch) | |
tree | f431b972dbd6f457fdde1749105a4a7a214de70a /llvm/test/ThinLTO | |
parent | 48882561253fa66deb9362c6b43f3bcda1a958f7 (diff) | |
download | llvm-a4bdb27538c3bc5b757976e47d663e63880451e3.zip llvm-a4bdb27538c3bc5b757976e47d663e63880451e3.tar.gz llvm-a4bdb27538c3bc5b757976e47d663e63880451e3.tar.bz2 |
[MemProf] Use profiled lifetime access density directly
Now that the runtime tracks the lifetime access density directly, we can
use that directly in the threshold checks instead of less accurately
computing from other statistics.
Differential Revision: https://reviews.llvm.org/D149684
Diffstat (limited to 'llvm/test/ThinLTO')
-rw-r--r-- | llvm/test/ThinLTO/X86/memprof-basic.ll | 2 | ||||
-rw-r--r-- | llvm/test/ThinLTO/X86/memprof-duplicate-context-ids.ll | 2 | ||||
-rw-r--r-- | llvm/test/ThinLTO/X86/memprof-duplicate-context-ids2.ll | 2 | ||||
-rw-r--r-- | llvm/test/ThinLTO/X86/memprof-indirectcall.ll | 2 | ||||
-rw-r--r-- | llvm/test/ThinLTO/X86/memprof-inlined.ll | 2 | ||||
-rw-r--r-- | llvm/test/ThinLTO/X86/memprof-inlined2.ll | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/llvm/test/ThinLTO/X86/memprof-basic.ll b/llvm/test/ThinLTO/X86/memprof-basic.ll index 4d11244..eaac271 100644 --- a/llvm/test/ThinLTO/X86/memprof-basic.ll +++ b/llvm/test/ThinLTO/X86/memprof-basic.ll @@ -26,7 +26,7 @@ ;; return 0; ;; } ;; -;; Code compiled with -mllvm -memprof-min-lifetime-cold-threshold=5 so that the +;; Code compiled with -mllvm -memprof-ave-lifetime-cold-threshold=5 so that the ;; memory freed after sleep(10) results in cold lifetimes. ;; ;; The IR was then reduced using llvm-reduce with the expected FileCheck input. diff --git a/llvm/test/ThinLTO/X86/memprof-duplicate-context-ids.ll b/llvm/test/ThinLTO/X86/memprof-duplicate-context-ids.ll index 3b297dd..6f89b36 100644 --- a/llvm/test/ThinLTO/X86/memprof-duplicate-context-ids.ll +++ b/llvm/test/ThinLTO/X86/memprof-duplicate-context-ids.ll @@ -38,7 +38,7 @@ ;; return 0; ;; } ;; -;; Code compiled with -mllvm -memprof-min-lifetime-cold-threshold=5 so that the +;; Code compiled with -mllvm -memprof-ave-lifetime-cold-threshold=5 so that the ;; memory freed after sleep(10) results in cold lifetimes. ;; ;; The code below was created by forcing inlining of C into both B and E. diff --git a/llvm/test/ThinLTO/X86/memprof-duplicate-context-ids2.ll b/llvm/test/ThinLTO/X86/memprof-duplicate-context-ids2.ll index af7dece..b77df88 100644 --- a/llvm/test/ThinLTO/X86/memprof-duplicate-context-ids2.ll +++ b/llvm/test/ThinLTO/X86/memprof-duplicate-context-ids2.ll @@ -76,7 +76,7 @@ ;; return 0; ;; } ;; -;; Code compiled with -mllvm -memprof-min-lifetime-cold-threshold=5 so that the +;; Code compiled with -mllvm -memprof-ave-lifetime-cold-threshold=5 so that the ;; memory freed after sleep(10) results in cold lifetimes. ;; ;; The code below was created by forcing inlining of A into its callers, diff --git a/llvm/test/ThinLTO/X86/memprof-indirectcall.ll b/llvm/test/ThinLTO/X86/memprof-indirectcall.ll index 9cf2092..8ba958a 100644 --- a/llvm/test/ThinLTO/X86/memprof-indirectcall.ll +++ b/llvm/test/ThinLTO/X86/memprof-indirectcall.ll @@ -44,7 +44,7 @@ ;; return 0; ;; } ;; -;; Code compiled with -mllvm -memprof-min-lifetime-cold-threshold=5 so that the +;; Code compiled with -mllvm -memprof-ave-lifetime-cold-threshold=5 so that the ;; memory freed after sleep(10) results in cold lifetimes. ;; ;; Compiled without optimization to prevent inlining and devirtualization. diff --git a/llvm/test/ThinLTO/X86/memprof-inlined.ll b/llvm/test/ThinLTO/X86/memprof-inlined.ll index 7a2304f..d6fa0d3 100644 --- a/llvm/test/ThinLTO/X86/memprof-inlined.ll +++ b/llvm/test/ThinLTO/X86/memprof-inlined.ll @@ -27,7 +27,7 @@ ;; return 0; ;; } ;; -;; Code compiled with -mllvm -memprof-min-lifetime-cold-threshold=5 so that the +;; Code compiled with -mllvm -memprof-ave-lifetime-cold-threshold=5 so that the ;; memory freed after sleep(10) results in cold lifetimes. ;; ;; The code below was created by forcing inlining of baz into foo, and diff --git a/llvm/test/ThinLTO/X86/memprof-inlined2.ll b/llvm/test/ThinLTO/X86/memprof-inlined2.ll index 1ffae8c..02baf9f 100644 --- a/llvm/test/ThinLTO/X86/memprof-inlined2.ll +++ b/llvm/test/ThinLTO/X86/memprof-inlined2.ll @@ -29,7 +29,7 @@ ;; return 0; ;; } ;; -;; Code compiled with -mllvm -memprof-min-lifetime-cold-threshold=5 so that the +;; Code compiled with -mllvm -memprof-ave-lifetime-cold-threshold=5 so that the ;; memory freed after sleep(10) results in cold lifetimes. ;; ;; Both foo and baz are inlined into main, at both foo callsites. |