[PATCH] D36679: [InstCombine] Added support for: trunc(ashr(mul(sext(...), sext(...))) -> ashr(mul(...))

Amjad Aboud via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 15 08:21:21 PDT 2017


aaboud updated this revision to Diff 111171.
aaboud added a comment.

Split the patch by moving: (X >>s C) << C --> X & (-1 << C) to https://reviews.llvm.org/D36743.


https://reviews.llvm.org/D36679

Files:
  lib/Analysis/ValueTracking.cpp
  lib/Transforms/InstCombine/InstCombineCasts.cpp
  lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
  test/Transforms/InstCombine/trunc.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36679.111171.patch
Type: text/x-patch
Size: 5511 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170815/3125baa5/attachment.bin>


More information about the llvm-commits mailing list