[PATCH] D129599: [SimpleLoopUnswitch] Skip non-trivial unswitching of cold loops

Ruobing Han via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 29 07:15:12 PDT 2022


drcut updated this revision to Diff 456331.
drcut added a comment.

Avoid applying non-trivial unswitching in cold Function. Compared with previous PGO solution, this version will apply non-trivial unswitching on cold loops in hot functions.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D129599/new/

https://reviews.llvm.org/D129599

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129599.456331.patch
Type: text/x-patch
Size: 5293 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220829/cc1c0391/attachment.bin>


More information about the llvm-commits mailing list