[PATCH] D99354: [SimpleLoopUnswitch] Port partially invariant unswitch from LoopUnswitch to SimpleLoopUnswitch

JinGu Kang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 21 07:35:57 PDT 2021


jaykang10 updated this revision to Diff 347025.
jaykang10 added a comment.

Following comments of @fhahn, updated code.

- Added metadata to avoid endless unswitch
- Reduced test case


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

https://reviews.llvm.org/D99354

Files:
  llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
  llvm/test/Transforms/SimpleLoopUnswitch/endless-unswitch.ll
  llvm/test/Transforms/SimpleLoopUnswitch/partial-unswitch-mssa-threshold.ll
  llvm/test/Transforms/SimpleLoopUnswitch/partial-unswitch-update-memoryssa.ll
  llvm/test/Transforms/SimpleLoopUnswitch/partial-unswitch.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99354.347025.patch
Type: text/x-patch
Size: 53678 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210521/51c6ef09/attachment.bin>


More information about the llvm-commits mailing list