[ARM] Convert a bitcast VDUP to a VDUP
authorDavid Green <david.green@arm.com>
Wed, 6 May 2020 13:06:02 +0000 (14:06 +0100)
committerDavid Green <david.green@arm.com>
Wed, 6 May 2020 13:14:21 +0000 (14:14 +0100)
commited7db68c354e48daf1efb5f119cee20938732100
tree486117468c7695b8ee2777184d10e45d271575bc
parent06591b6d191ad3582d21a801cbaf56b36714cae7
[ARM] Convert a bitcast VDUP to a VDUP

The idea, under MVE, is to introduce more bitcasts around VDUP's in an
attempt to get the type correct across basic block boundaries. In order
to do that without other regressions we need a few fixups, of which this
is the first. If the code is a bitcast of a VDUP, we can convert that
straight into a VDUP of the new type, so long as they have the same
size.

Differential Revision: https://reviews.llvm.org/D78706
llvm/lib/Target/ARM/ARMISelLowering.cpp
llvm/test/CodeGen/Thumb2/mve-vaddqr.ll
llvm/test/CodeGen/Thumb2/mve-vcmpfr.ll