[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 Mar 26 02:20:36 PDT 2021


jaykang10 added a comment.

In D99354#2652524 <https://reviews.llvm.org/D99354#2652524>, @fhahn wrote:

> Thanks for putting up this patch! Would it be possible to move the detection code (`hasPartialIVCondition`) somewhere, so both version of unswitching can use the same code?

Yep, I also wanted to share it so I have tried to keep the existing implementation as much as possible... I am not sure which place is good for this... maybe, somewhere in lib/Transform/Utils?


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

https://reviews.llvm.org/D99354



More information about the llvm-commits mailing list