[PATCH] D136233: [SimpleLoopUnswitch] Inject loop-invariant conditions and unswitch them when it's profitable

Max Kazantsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 2 05:35:58 PST 2023


mkazantsev updated this revision to Diff 494270.
mkazantsev edited the summary of this revision.
mkazantsev added a comment.

Addressed comments:

- Canonicalization split off;
- Checks are factored out into a separate function;
- Also separate checker for metadata, it also checks frequencies. I was unable to force BFI be non-null there, so the solution is somewhat clumsy.


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

https://reviews.llvm.org/D136233

Files:
  llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
  llvm/test/Transforms/SimpleLoopUnswitch/inject-invariant-conditions.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136233.494270.patch
Type: text/x-patch
Size: 32840 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230202/54f88329/attachment.bin>


More information about the llvm-commits mailing list