Recognize canonical forms of vector shuffles where the same vector is used for
authorBob Wilson <bob.wilson@apple.com>
Thu, 3 Dec 2009 06:40:55 +0000 (06:40 +0000)
committerBob Wilson <bob.wilson@apple.com>
Thu, 3 Dec 2009 06:40:55 +0000 (06:40 +0000)
commit324f4f163350487243d3a93b2a79f5eb2edc3b03
tree85d5252ad88a57853e12b0642541835ae16efe1b
parent9f0d4e631d73659e8a94495b9a6d5ecbb6ad68a1
Recognize canonical forms of vector shuffles where the same vector is used for
both source operands.  In the canonical form, the 2nd operand is changed to an
undef and the shuffle mask is adjusted to only reference elements from the 1st
operand.  Radar 7434842.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90417 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelLowering.cpp
test/CodeGen/ARM/2009-12-02-vtrn-undef.ll [new file with mode: 0644]