1 ; Check that the LTO pipelines add the Tail Call Elimination pass.
3 ; RUN: llvm-as < %s > %t1
4 ; RUN: llvm-lto -o %t2 %t1 --exported-symbol=foo -save-merged-module
5 ; RUN: llvm-dis < %t2.merged.bc | FileCheck %s
7 ; RUN: llvm-lto2 run -r %t1,foo,plx -r %t1,bar,plx -o %t3 %t1 -save-temps
8 ; RUN: llvm-dis < %t3.0.4.opt.bc | FileCheck %s
10 ; RUN: llvm-lto2 run -r %t1,foo,plx -r %t1,bar,plx -o %t4 %t1 -save-temps -use-new-pm
11 ; RUN: llvm-dis < %t4.0.4.opt.bc | FileCheck %s
13 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
14 target triple = "x86_64-unknown-linux-gnu"
17 ; CHECK: tail call void @bar()