[PATCH] D47428: [InstCombine] PR37603: low bit mask canonicalization

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 4 07:03:18 PDT 2018


spatel accepted this revision.
spatel added a comment.
This revision is now accepted and ready to land.

In https://reviews.llvm.org/D47428#1120867, @lebedev.ri wrote:

> I was just thinking about profitability of transform to `xor %x, -1`,
>  and thought whether we could always do that if the input is `add %x, -1`.
>
> I can submit that fold as a follow-up.


Sounds good. This patch LGTM.


Repository:
  rL LLVM

https://reviews.llvm.org/D47428





More information about the llvm-commits mailing list