[PATCH] [mips] Optimize code generation for 64-bit variable shift instructions.

Vasileios Kalintiris Vasileios.Kalintiris at imgtec.com
Wed Feb 4 09:50:29 PST 2015


Hi dsanders,

The 64-bit version of the variable shift instructions uses the
shift_rotate_reg class which uses a GPR32Opnd to specify the variable
shift amount. With this patch we avoid the generation of a redundant
SLL instruction for the variable shift instructions in 64-bit targets.

http://reviews.llvm.org/D7413

Files:
  lib/Target/Mips/Mips64InstrInfo.td
  test/CodeGen/Mips/llvm-ir/ashr.ll
  test/CodeGen/Mips/llvm-ir/lshr.ll
  test/CodeGen/Mips/llvm-ir/shl.ll
  test/CodeGen/Mips/mips64shift.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7413.19329.patch
Type: text/x-patch
Size: 12580 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150204/290992d8/attachment.bin>


More information about the llvm-commits mailing list