brintos

brintos / llvm-project-archived public Read only

0
0
Text · 862 B · cf965c6 Raw
27 lines · plain
1; This test checks that ThinLTO doesn't try to import noinline function2; which, when takes place, causes promotion of its callee.3; RUN: opt -module-summary %s -o %t1.bc4; RUN: opt -module-summary %p/Inputs/noinline.ll -o %t2.bc5; RUN: llvm-lto2 run %t1.bc %t2.bc -o %t3.o \6; RUN:   -save-temps       \7; RUN:   -r=%t1.bc,main,px \8; RUN:   -r=%t1.bc,foo,    \9; RUN:   -r=%t2.bc,foo,p10 11; RUN: llvm-dis %t3.o.1.3.import.bc -o - | FileCheck %s12 13; CHECK-NOT: define available_externally i32 @foo14 15target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"16target triple = "x86_64-pc-linux-gnu"17 18; Function Attrs: nounwind ssp uwtable19define i32 @main(i32, ptr nocapture readnone) local_unnamed_addr #0 {20  %3 = tail call i32 @foo(i32 %0) #021  ret i32 %322}23 24declare i32 @foo(i32) local_unnamed_addr25 26attributes #0 = { nounwind }27