[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
Mon Jan 30 05:11:02 PST 2023


mkazantsev updated this revision to Diff 493280.
mkazantsev added a comment.

Rolled back to last working version (effectively undone changes from last request).

- Removal of canonicalization cripples the transform to a point where it makes no sense. Function renamed into `canonicalizePredicate`.
- Profitability check cripples the transform to doing nothing. Trying to understand why.


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.493280.patch
Type: text/x-patch
Size: 28956 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230130/67b488a9/attachment.bin>


More information about the llvm-commits mailing list