[LTO] Add an early run of functionattrs
authorJames Molloy <james.molloy@arm.com>
Wed, 18 Nov 2015 11:24:42 +0000 (11:24 +0000)
committerJames Molloy <james.molloy@arm.com>
Wed, 18 Nov 2015 11:24:42 +0000 (11:24 +0000)
commit683e0e5156ede45f9a9546b8d2a106dea5614035
tree5eae0b2b59e39bcba2659345bf930233c4f4ff90
parent51f7c584fa6862cf0f2b9d0d50de529c623b0841
[LTO] Add an early run of functionattrs

Because we internalize early, we can potentially mark a bunch of functions as norecurse. Do this before globalopt.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253451 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/PassManagerBuilder.cpp
test/LTO/X86/diagnostic-handler-remarks.ll