[ARM] VMOVN undef folding
authorDavid Green <david.green@arm.com>
Sun, 28 Feb 2021 14:44:45 +0000 (14:44 +0000)
committerDavid Green <david.green@arm.com>
Sun, 28 Feb 2021 14:44:45 +0000 (14:44 +0000)
commit91ebc4e864c061f9a72791700150f82d19bbd003
treed2133ef1a2eda344018d2ad629b0896137d347de
parent860e862f34ce17f6a5ddeee472fe4e305370da18
[ARM] VMOVN undef folding

If we insert undef using a VMOVN, we can just use the original value in
three out of the four possible combinations. Using VMOVT into a undef
vector will still require the lanes to be moved, but otherwise the
non-undef value can be used.
llvm/lib/Target/ARM/ARMISelLowering.cpp
llvm/test/CodeGen/Thumb2/mve-vmovn.ll