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

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 10 14:17:03 PDT 2018


lebedev.ri updated this revision to Diff 150662.
lebedev.ri added reviewers: mareko, bogner, rampitec.
lebedev.ri added a comment.
Herald added a subscriber: nhaehnle.

Ok, that didn't go as planned :)
Did not notice the AMDGPU test change (yay tests), so the bots broke.
Did not evaluate the effect of that change on the AMDGPU codegen yet, will do tomorrow.


Repository:
  rL LLVM

https://reviews.llvm.org/D47980

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47980.150662.patch
Type: text/x-patch
Size: 4130 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180610/2ff86e6b/attachment.bin>


More information about the llvm-commits mailing list