[PATCH] D133275: [SimpleLoopUnswitch] Skip non-trivial unswitching of cold functions
Ruobing Han via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 4 10:01:43 PDT 2022
drcut created this revision.
drcut added reviewers: alexgatea, aeubanks, asbirlea.
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.
In the current main branch, all cold loops will not be applied non-trivial unswitch. As reported in D129599 <https://reviews.llvm.org/D129599>, skipping these cold loops will incur regression in SPEC benchmark.
Thus, instead of skipping cold loops, now only skipping loops in cold functions.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D133275
Files:
llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
llvm/test/Transforms/SimpleLoopUnswitch/PGO-nontrivial-unswitch.ll
llvm/test/Transforms/SimpleLoopUnswitch/PGO-nontrivial-unswitch2.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133275.457867.patch
Type: text/x-patch
Size: 7868 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220904/d79230db/attachment.bin>
More information about the llvm-commits
mailing list