diff options
| author | George Rimar <grimar@accesssoftek.com> | 2018-01-29 08:03:30 +0000 |
|---|---|---|
| committer | George Rimar <grimar@accesssoftek.com> | 2018-01-29 08:03:30 +0000 |
| commit | eaf5172ca6be291677f6f84cffae0c66656600a3 (patch) | |
| tree | a4a2196f3b147192435ca6632a267cc7cd06c4d8 /llvm/test/tools | |
| parent | 62b62356fae9a66a7bdbf33d5790d7db39c9af5e (diff) | |
| download | bcm5719-llvm-eaf5172ca6be291677f6f84cffae0c66656600a3.tar.gz bcm5719-llvm-eaf5172ca6be291677f6f84cffae0c66656600a3.zip | |
[ThinLTO] - Stop internalizing and drop non-prevailing symbols.
Implementation marks non-prevailing symbols as not live in the summary.
Then them are dropped in backends.
Fixes https://bugs.llvm.org/show_bug.cgi?id=35938
Differential revision: https://reviews.llvm.org/D42107
llvm-svn: 323633
Diffstat (limited to 'llvm/test/tools')
| -rw-r--r-- | llvm/test/tools/gold/X86/global_with_section.ll | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/llvm/test/tools/gold/X86/global_with_section.ll b/llvm/test/tools/gold/X86/global_with_section.ll index d2b7097d812..4728ae34439 100644 --- a/llvm/test/tools/gold/X86/global_with_section.ll +++ b/llvm/test/tools/gold/X86/global_with_section.ll @@ -22,7 +22,7 @@ ; RUN: --plugin-opt=save-temps \ ; RUN: -o %t3.o %t.o %t2.o ; Check results of internalization -; RUN: llvm-dis %t.o.2.internalize.bc -o - | FileCheck %s +; RUN: llvm-dis %t.o.2.internalize.bc -o - | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-THINLTO ; RUN: llvm-dis %t2.o.2.internalize.bc -o - | FileCheck %s --check-prefix=CHECK2-THINLTO ; SYMTAB: deadfunc_with_section @@ -57,7 +57,9 @@ define void @deadfunc_with_section() section "some_other_section" { ; Confirm via a function with a non-C identifier section that we are getting ; the expected internalization. -; CHECK-DAG: define internal void @deadfunc_with_nonC_section() section ".nonCsection" +; CHECK2-REGULARLTO-DAG: define internal void @deadfunc_with_nonC_section() section ".nonCsection" +; Check dead function converted to declaration. +; CHECK-THINLTO-DAG: declare dso_local void @deadfunc_with_nonC_section() section ".nonCsection" define void @deadfunc_with_nonC_section() section ".nonCsection" { call void @deadfunc2_called_from_nonC_section() ret void @@ -75,5 +77,6 @@ declare void @deadfunc2_called_from_section() ; Confirm when called from a function with a non-C identifier section that we ; are getting the expected internalization. ; CHECK2-REGULARLTO: define internal void @deadfunc2_called_from_nonC_section -; CHECK2-THINLTO: define internal void @deadfunc2_called_from_nonC_section +; Check dead function converted to declaration. +; CHECK2-THINLTO: declare dso_local void @deadfunc2_called_from_nonC_section declare void @deadfunc2_called_from_nonC_section() |

