diff options
author | Teresa Johnson <tejohnson@google.com> | 2023-05-10 16:05:41 -0700 |
---|---|---|
committer | Teresa Johnson <tejohnson@google.com> | 2023-05-11 09:10:32 -0700 |
commit | a40b0c3e77a28b8dee5af7f9d9cdc9ad5919077e (patch) | |
tree | e3ffe8d3752d9c4d9163e8d811b2f8f919ef4241 /lld | |
parent | 236a0e82df37d3a11f57c34df43bea1904a29530 (diff) | |
download | llvm-a40b0c3e77a28b8dee5af7f9d9cdc9ad5919077e.tar.gz |
[WPD] Update llvm.public.type.test after importing functions
I noticed that we are converting llvm.public.type.test to regular
llvm.type.test too early, and thus not updating those in imported
functions. This would result in losing out on WPD opportunities. Move
the update to after function importing, and improve test to cover this
case.
Differential Revision: https://reviews.llvm.org/D150326
Diffstat (limited to 'lld')
-rw-r--r-- | lld/test/ELF/lto/update_public_type_test.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/test/ELF/lto/update_public_type_test.ll b/lld/test/ELF/lto/update_public_type_test.ll index 037e7b9089d0..285085e0b529 100644 --- a/lld/test/ELF/lto/update_public_type_test.ll +++ b/lld/test/ELF/lto/update_public_type_test.ll @@ -4,9 +4,9 @@ ; RUN: opt --thinlto-bc -o %t.o %s ; RUN: ld.lld %t.o -o %t2.o --save-temps -; RUN: llvm-dis %t.o.0.preopt.bc -o - | FileCheck %s --check-prefix=PUB +; RUN: llvm-dis %t.o.3.import.bc -o - | FileCheck %s --check-prefix=PUB ; RUN: ld.lld %t.o -o %t3.o --save-temps --lto-whole-program-visibility -; RUN: llvm-dis %t.o.0.preopt.bc -o - | FileCheck %s --check-prefix=WPV +; RUN: llvm-dis %t.o.3.import.bc -o - | FileCheck %s --check-prefix=WPV target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-grtev4-linux-gnu" |