[PATCH] D138526: [SimpleLoopUnswitch] unswitch selects

Joshua Cao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 10 23:24:03 PDT 2023


caojoshua updated this revision to Diff 521212.
caojoshua edited the summary of this revision.
caojoshua added a comment.

reland 2

Include https://reviews.llvm.org/D149560 together with the patch.

I also noticed this could have been caught if SimpleLoopUnswitch/crash.ll
@test2 had nontrivial loop unswitch testing. I also added a run with nontrivial
unswitching turned on.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D138526

Files:
  llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
  llvm/test/Transforms/SimpleLoopUnswitch/crash.ll
  llvm/test/Transforms/SimpleLoopUnswitch/nontrivial-unswitch-freeze.ll
  llvm/test/Transforms/SimpleLoopUnswitch/nontrivial-unswitch-select.ll
  llvm/test/Transforms/SimpleLoopUnswitch/nontrivial-unswitch-trivial-select.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138526.521212.patch
Type: text/x-patch
Size: 49033 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230511/4796580b/attachment.bin>


More information about the llvm-commits mailing list