[PATCH] D21686: Use SystemZ NILL instruction instead of NILF where possible

Elliot Colp via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 24 08:22:05 PDT 2016


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

SystemZ shift instructions only use the last 6 bits of the shift amount. When the result of an AND operation is used as a shift amount, this means that we can use the NILL instruction (which operates on the last 16 bits) rather than NILF (which operates on the last 32 bits) for a 16-bit savings in instruction size.

http://reviews.llvm.org/D21686

Files:
  lib/Target/SystemZ/SystemZInstrInfo.td
  test/CodeGen/SystemZ/shift-11.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21686.61795.patch
Type: text/x-patch
Size: 3526 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160624/69fdd107/attachment.bin>


More information about the llvm-commits mailing list