[PATCH] D64285: [InstCombine] 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
Thu Jul 11 09:00:29 PDT 2019


xbolva00 updated this revision to Diff 209239.
xbolva00 added a comment.

Introduced m_Instruction().


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

https://reviews.llvm.org/D64285

Files:
  include/llvm/IR/PatternMatch.h
  lib/Analysis/InstructionSimplify.cpp
  lib/Transforms/InstCombine/InstCombineSelect.cpp
  test/Transforms/InstCombine/ashr-lshr.ll
  test/Transforms/InstSimplify/ashr-lshr.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64285.209239.patch
Type: text/x-patch
Size: 23768 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190711/2a9ecdc6/attachment.bin>


More information about the llvm-commits mailing list