[PATCH] D129599: Apply PGO on SimpleLoopUnswitch

Ruobing Han via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 12 15:05:47 PDT 2022


drcut created this revision.
Herald added subscribers: wenlei, hiraditya.
Herald added a project: All.
drcut requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

With profile data, non-trivial LoopUnswitch will only apply on non-cold loops, as unswitch cold loops may not gain much benefit but significantly increase the code size.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D129599

Files:
  llvm/lib/Passes/PassBuilder.cpp
  llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
  llvm/test/Transforms/SimpleLoopUnswitch/PGO-nontrivial-unswitch.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129599.444089.patch
Type: text/x-patch
Size: 7273 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220712/38d8724f/attachment.bin>


More information about the llvm-commits mailing list