As commented in the code, ProfileSummaryAnalysis is required for inliner pass to query, so this patch moved RequireAnalysisPass<ProfileSummaryAnalysis> in the recently created buildInlinerPipeline.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Passes/PassBuilder.cpp | ||
---|---|---|
893 | Doesn't this hold for GlobalsAA as well? |
Comment Actions
The two requires of GlobalAA and ProfileSummaryAnalysis are explicitly commented for the CGSCC pipeline or the inliner.
Currently is not obvious that module passes (that doesn't preserve GlobalAA or ProfileSummaryAnalysis) should not be added before buildInlinerPipeline.
With this patch, buildInlinerPipeline can now use GlobalAA and ProfileSummaryAnalysis, without requiring them separately.
It also gives flexibility for passes to be added in buildInlinerPipeline in the future.
Doesn't this hold for GlobalsAA as well?