[PATCH] D21854: Remove AND mask of bottom 6 bits when result is used for SystemZ shift/rotate

Elliot Colp via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 29 11:54:38 PDT 2016


colpell created this revision.
colpell added a reviewer: uweigand.
colpell added a subscriber: llvm-commits.

On SystemZ, shift and rotate instructions only use the bottom 6 bits of the shift/rotate amount. Therefore, if the amount is ANDed with an immediate mask that has all of the bottom 6 bits set, we can remove the AND operation entirely.

http://reviews.llvm.org/D21854

Files:
  lib/Target/SystemZ/SystemZInstrInfo.td
  lib/Target/SystemZ/SystemZOperands.td
  test/CodeGen/SystemZ/rot-01.ll
  test/CodeGen/SystemZ/rot-02.ll
  test/CodeGen/SystemZ/shift-12.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21854.62260.patch
Type: text/x-patch
Size: 7446 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160629/389fb676/attachment.bin>


More information about the llvm-commits mailing list