[PATCH] D47981: [InstCombine] Fold (x >> y) << y -> x & (-1 << y)

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 10 13:14:39 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL334372: [InstCombine] Fold (x >> y) << y  ->  x & (-1 << y) (authored by lebedevri, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D47981?vs=150627&id=150660#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D47981

Files:
  llvm/trunk/lib/Transforms/InstCombine/InstCombineShifts.cpp
  llvm/trunk/test/Transforms/InstCombine/canonicalize-ashr-shl-to-masking.ll
  llvm/trunk/test/Transforms/InstCombine/canonicalize-lshr-shl-to-masking.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47981.150660.patch
Type: text/x-patch
Size: 4502 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180610/a1610f0a/attachment.bin>


More information about the llvm-commits mailing list