ARM: add patterns for [su]xta[bh] from just a shift.
authorTim Northover <tnorthover@apple.com>
Wed, 23 Jul 2014 13:59:07 +0000 (13:59 +0000)
committerTim Northover <tnorthover@apple.com>
Wed, 23 Jul 2014 13:59:07 +0000 (13:59 +0000)
commit7ad2a0e0c2bc323649507e72b112ad2060be100c
tree43287ac539ac06b7b82d28e430e31bc091b16f81
parentbc9fed82ccf8ae255b3c53c62a31292192d0fd15
ARM: add patterns for [su]xta[bh] from just a shift.

Although the final shifter operand is a rotate, this actually only matters for
the half-word extends when the amount == 24. Otherwise folding a shift in is
just as good.

llvm-svn: 213753
llvm/lib/Target/ARM/ARMInstrInfo.td
llvm/lib/Target/ARM/ARMInstrThumb2.td
llvm/test/CodeGen/Thumb2/thumb2-sxt_rot.ll
llvm/test/CodeGen/Thumb2/thumb2-uxt_rot.ll