[ThinLTO] Ensure the TargetLibraryInfo is constructed early enough
Summary: Without this change, the WholeProgramDevirt pass, which requires the TargetLibraryInfo, will construct one from the default triple. Fixes PR38139. Reviewers: pcc Subscribers: mehdi_amini, inglorion, steven_wu, dexonsmith, llvm-commits Differential Revision: https://reviews.llvm.org/D49278 llvm-svn: 337750
Showing
- llvm/lib/Transforms/IPO/PassManagerBuilder.cpp 2 additions, 0 deletionsllvm/lib/Transforms/IPO/PassManagerBuilder.cpp
- llvm/test/LTO/X86/triple-init.ll 10 additions, 1 deletionllvm/test/LTO/X86/triple-init.ll
- llvm/test/LTO/X86/triple-init2.ll 31 additions, 0 deletionsllvm/test/LTO/X86/triple-init2.ll
llvm/test/LTO/X86/triple-init2.ll
0 → 100644
Please register or sign in to comment