[PATCH] D64285: [InstCombine] Fold select (icmp sgt x, -1), lshr (X, Y), ashr (X, Y) to ashr (X, Y))

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 9 12:25:37 PDT 2019


lebedev.ri added a comment.

In D64285#1576737 <https://reviews.llvm.org/D64285#1576737>, @xbolva00 wrote:

> >> Part of this fold belongs to instsimplify:
>
> almost same code on two places :/


Ugly, yeah, but powerful instsimplify is nice ^^


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

https://reviews.llvm.org/D64285





More information about the llvm-commits mailing list