[PassBuilder] Moved ProfileSummaryAnalysis in buildInlinerPipeline.
authorWhitney Tsang <whitneyt@ca.ibm.com>
Tue, 12 May 2020 15:56:14 +0000 (15:56 +0000)
committerWhitney Tsang <whitneyt@ca.ibm.com>
Tue, 12 May 2020 16:00:40 +0000 (16:00 +0000)
commit5c10c6e0128a69442b55d324f010f94dbe7eebc9
treeb0acf2b5f63755656f70ecd87e2ae46e6e651bde
parent989be65b11fa2fbc2cde7e188657636ea9a2da1d
[PassBuilder] Moved ProfileSummaryAnalysis in buildInlinerPipeline.

Summary:
As commented in the code, ProfileSummaryAnalysis is required for inliner
pass to query, so this patch moved
RequireAnalysisPass<ProfileSummaryAnalysis> in the recently created
buildInlinerPipeline.
Reviewer: mtrofin, davidxl, tejohnson, dblaikie, jdoerfert, sstefan1
Reviewed By: mtrofin, davidxl, jdoerfert
Subscribers: hiraditya, steven_wu, dexonsmith, wuzish, llvm-commits,
jsji
Tag: LLVM
Differential Revision: https://reviews.llvm.org/D79696
llvm/lib/Passes/PassBuilder.cpp
llvm/test/Other/new-pm-defaults.ll
llvm/test/Other/new-pm-thinlto-defaults.ll
llvm/test/Other/new-pm-thinlto-postlink-pgo-defaults.ll
llvm/test/Other/new-pm-thinlto-postlink-samplepgo-defaults.ll
llvm/test/Other/new-pm-thinlto-prelink-pgo-defaults.ll
llvm/test/Other/new-pm-thinlto-prelink-samplepgo-defaults.ll