brintos

brintos / llvm-project-archived public Read only

0
0
Text · 576 B · a60b79c Raw
20 lines · plain
1; Check that the LTO pipelines add the Tail Call Elimination pass.2 3; RUN: llvm-as < %s > %t14; RUN: llvm-lto -o %t2 %t1 --exported-symbol=foo -save-merged-module5; RUN: llvm-dis < %t2.merged.bc | FileCheck %s6 7; RUN: llvm-lto2 run -r %t1,foo,plx -r %t1,bar,plx -o %t4 %t1 -save-temps8; RUN: llvm-dis < %t4.0.4.opt.bc | FileCheck %s9 10target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"11target triple = "x86_64-unknown-linux-gnu"12 13define void @foo() {14; CHECK: tail call void @bar()15  call void @bar()16  ret void17}18 19declare void @bar()20