brintos

brintos / llvm-project-archived public Read only

0
0
Text · 797 B · 5408596 Raw
30 lines · plain
1; RUN: opt -module-summary %s -o %t.o2; RUN: opt -module-summary %p/Inputs/thinlto_internalize.ll -o %t2.o3 4; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold%shlibext \5; RUN:     --plugin-opt=thinlto \6; RUN:     --plugin-opt=-import-instr-limit=0 \7; RUN:     --plugin-opt=save-temps \8; RUN:     -o %t3.o %t2.o %t.o9; RUN: llvm-dis %t.o.4.opt.bc -o - | FileCheck %s10 11; f() should be internalized and eliminated after inlining12; CHECK-NOT: @f()13 14; h() should be internalized after promotion, and eliminated after inlining15; CHECK-NOT: @h.llvm.16 17target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"18target triple = "x86_64-unknown-linux-gnu"19define i32 @g() {20  call void @f()21  call void @h()22  ret i32 023}24define void @f() {25  ret void26}27define internal void @h() {28  ret void29}30