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

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 15 03:01:41 PDT 2018


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

Changed prior to commit:
  https://reviews.llvm.org/D47980?vs=150662&id=151480#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D47980

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47980.151480.patch
Type: text/x-patch
Size: 4229 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180615/8ca01af7/attachment.bin>


More information about the llvm-commits mailing list