1; Check that the LTO pipelines add the Tail Call Elimination pass. 2 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 6 7; RUN: llvm-lto2 run -r %t1,foo,plx -r %t1,bar,plx -o %t4 %t1 -save-temps 8; RUN: llvm-dis < %t4.0.4.opt.bc | FileCheck %s 9 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 void 17} 18 19declare void @bar() 20