[PATCH] D85092: [InstSimplify] Peephole optimization for icmp (urem X, Y), X

Xavier Denis via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 2 07:31:05 PDT 2020


xldenis added a comment.

In D85092#2189498 <https://reviews.llvm.org/D85092#2189498>, @bugadani wrote:

> I think it's also possible to apply the same logic to both `X % Y <= Y` and `X % Y <= X`

The first optimization already exists (line 2787, sorry having a hard time in this UI).  And I'm adding the second one, unless I misunderstood?


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

https://reviews.llvm.org/D85092



More information about the llvm-commits mailing list