[ARM] Fold predicate_cast(load) into vldr p0
authorDavid Green <david.green@arm.com>
Fri, 4 Sep 2020 10:29:59 +0000 (11:29 +0100)
committerDavid Green <david.green@arm.com>
Fri, 4 Sep 2020 10:29:59 +0000 (11:29 +0100)
commit294c0cc3ebad969819be4b5b8d091418b0704595
treedd46f089d0e7e5a70262762181f3879487ffd286
parent0faf3930c405c320d8ed210aa0b44ef608e208da
[ARM] Fold predicate_cast(load) into vldr p0

This adds a simple tablegen pattern for folding predicate_cast(load)
into vldr p0, providing the alignment and offset are correct.

Differential Revision: https://reviews.llvm.org/D86702
llvm/lib/Target/ARM/ARMInstrMVE.td
llvm/test/CodeGen/Thumb2/mve-pred-loadstore.ll