OSDN Git Service

[ARM] Mark VSETLNi32 with the InsertSubreg property and implement the related
authorQuentin Colombet <qcolombet@apple.com>
Thu, 21 Aug 2014 00:10:52 +0000 (00:10 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Thu, 21 Aug 2014 00:10:52 +0000 (00:10 +0000)
commit7599acc2af3554f770457dd8bbd2cb1d29e5ca7d
tree76f70634e3efa24953f947b1a370c548d8156867
parent824431f680adb2e935bb5512e9cc9ccbe1a9136b
[ARM] Mark VSETLNi32 with the InsertSubreg property and implement the related
target hook.

This patch teaches the compiler that:
dX = VSETLNi32 dY, rZ, imm
is the same as:
dX = INSERT_SUBREG dY, rZ, translateImmToSubIdx(imm)

<rdar://problem/12702965>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216143 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMInstrInfo.cpp
lib/Target/ARM/ARMInstrInfo.h
lib/Target/ARM/ARMInstrNEON.td