[PATCH] D144769: [Pass] Move ControlHeightReduction to module optimization pipeline

Rong Xu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 24 18:09:46 PST 2023


xur created this revision.
xur added reviewers: aeubanks, tejohnson.
Herald added subscribers: Enna1, ormris, wenlei, steven_wu, hiraditya.
Herald added a project: All.
xur requested review of this revision.
Herald added a project: LLVM.

This is a modified version of commit b374423304a8 <https://reviews.llvm.org/rGb374423304a8d91d590d0ce5ab1b381296d6dfb2> by Arthur (https://reviews.llvm.org/D143424).

Here we invoke to the pass independent of PGOOPT.  We now check if the profile is available through the program summary.
This ensures CHR is called in distributed ThinLTO BE compilation (where PGOOPT might not be created).


https://reviews.llvm.org/D144769

Files:
  llvm/lib/Passes/PassBuilderPipelines.cpp
  llvm/lib/Transforms/Instrumentation/ControlHeightReduction.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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144769.500337.patch
Type: text/x-patch
Size: 13718 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230225/11dc313e/attachment.bin>


More information about the llvm-commits mailing list