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)
commit52aa80b06852f30356fb939b1fe59f201f5dcdd6
tree1a38caa599edf433b5e4837ca962b603302f2941
parented1006469907037a95c6501ca145cf3b525695d3
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213753 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMInstrInfo.td
lib/Target/ARM/ARMInstrThumb2.td
test/CodeGen/Thumb2/thumb2-sxt_rot.ll
test/CodeGen/Thumb2/thumb2-uxt_rot.ll