[ARM][ParallelDSP] Replace SExt uses
authorSam Parker <sam.parker@arm.com>
Fri, 9 Aug 2019 07:48:50 +0000 (07:48 +0000)
committerSam Parker <sam.parker@arm.com>
Fri, 9 Aug 2019 07:48:50 +0000 (07:48 +0000)
commit0dba791a25e7e520760e0c5127434a0377bc50db
treea5c85200088fb4666ed7d3db9297358d457ba1dd
parentef0c3ddc7f4b240461c4ee701dd6712b8068dbd7
[ARM][ParallelDSP] Replace SExt uses

As loads are combined and widened, we replaced their sext users
operands whereas we should have been replacing the uses of the sext.
I've added a load of tests, with only a few of them originally
causing assertion failures, the rest improve pattern coverage.

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

llvm-svn: 368404
llvm/lib/Target/ARM/ARMParallelDSP.cpp
llvm/test/CodeGen/ARM/ParallelDSP/blocks.ll
llvm/test/CodeGen/ARM/ParallelDSP/exchange.ll [new file with mode: 0644]
llvm/test/CodeGen/ARM/ParallelDSP/overlapping.ll [new file with mode: 0644]