[PATCH] D58258: [HotColdSplit] Schedule splitting late to fix perf regression

Vedant Kumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 14 15:27:07 PST 2019


vsk created this revision.
vsk added reviewers: tejohnson, hiraditya, anemet.
Herald added subscribers: jdoerfert, dexonsmith, steven_wu, mehdi_amini.
Herald added a project: LLVM.

With or without PGO data applied, splitting early in the pipeline
(either before the inliner or shortly after it) regresses performance
across SPEC variants. The cause appears to be that splitting hides
context for subsequent optimizations.

Schedule splitting late again, in effect reversing r352080, which
scheduled the splitting pass early for code size benefits (documented in
https://reviews.llvm.org/D57082).

rdar://47622429


https://reviews.llvm.org/D58258

Files:
  llvm/lib/Passes/PassBuilder.cpp
  llvm/lib/Transforms/IPO/PassManagerBuilder.cpp
  llvm/test/Other/X86/lto-hot-cold-split.ll
  llvm/test/Other/new-pm-pgo.ll
  llvm/test/Other/opt-hot-cold-split.ll
  llvm/test/Other/pass-pipelines.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58258.186928.patch
Type: text/x-patch
Size: 6935 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190214/a301629d/attachment.bin>


More information about the llvm-commits mailing list