[TailCallElim] Add tailcall elimination pass to LTO pipelines
authorRobert Lougher <rob.lougher@gmail.com>
Tue, 19 Mar 2019 20:24:28 +0000 (20:24 +0000)
committerRobert Lougher <rob.lougher@gmail.com>
Tue, 19 Mar 2019 20:24:28 +0000 (20:24 +0000)
commitde548ccab9f1dfdefff338754fbc151f4b5cee46
tree581194c9a51c9647c9d84473a60795218bf1991a
parent70537abe525cd6499feae5f34e5ae3d107a0f940
[TailCallElim] Add tailcall elimination pass to LTO pipelines

LTO provides additional opportunities for tailcall elimination due to
link-time inlining and visibility of nocapture attribute. Testing showed
negligible impact on compilation times.

Differential Revision: https://reviews.llvm.org/D58391

llvm-svn: 356511
llvm/lib/Passes/PassBuilder.cpp
llvm/lib/Transforms/IPO/PassManagerBuilder.cpp
llvm/test/LTO/X86/tailcallelim.ll [new file with mode: 0644]
llvm/test/Other/new-pm-lto-defaults.ll