[ARM][ParallelDSP] Fix pointer operand reordering
authorSam Parker <sam.parker@arm.com>
Wed, 24 Jul 2019 09:38:39 +0000 (09:38 +0000)
committerSam Parker <sam.parker@arm.com>
Wed, 24 Jul 2019 09:38:39 +0000 (09:38 +0000)
commitaeb21b96a0e9ee699ece8fe5dd8cc34a0cc8840d
tree00cc66d1a46fff1c93bde9e32cb14c6e186c489e
parent6076788c5b9c16253e0b33f061fe022f29b36bb8
[ARM][ParallelDSP] Fix pointer operand reordering

While combining two loads into a single load, we often need to
reorder the pointer operands for the new load. This reordering was
broken in the cases where there was a chain of values that built up
the pointer.

Differential Revision: https://reviews.llvm.org/D65193

llvm-svn: 366881
llvm/lib/Target/ARM/ARMParallelDSP.cpp
llvm/test/CodeGen/ARM/ParallelDSP/pr42729.ll [new file with mode: 0644]