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

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 9 08:34:30 PDT 2019


xbolva00 updated this revision to Diff 208701.
xbolva00 retitled this revision from "[InstCombine] Fold select (icmp sgt x, -1), lshr (X, Y), ashr (X, Y) to ashr (X, Y))" to "[InstSimplify] Fold select (icmp sgt x, -1), lshr (X, Y), ashr (X, Y) to ashr (X, Y))".
xbolva00 added a comment.

Moved to InstSimplify.
Precommited tests.
Handled "exact" variants.


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

https://reviews.llvm.org/D64285

Files:
  lib/Analysis/InstructionSimplify.cpp
  test/Transforms/InstSimplify/ashr-lshr.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64285.208701.patch
Type: text/x-patch
Size: 7720 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190709/747ae22f/attachment.bin>


More information about the llvm-commits mailing list