[ARM] Don't confuse the scheduler for very large VLDMDIA etc.
authorEli Friedman <efriedma@quicinc.com>
Wed, 27 Mar 2019 18:33:30 +0000 (18:33 +0000)
committerEli Friedman <efriedma@quicinc.com>
Wed, 27 Mar 2019 18:33:30 +0000 (18:33 +0000)
commitc388bfa23040e267dfe6295c2e5c243042a426d3
treeca7889d6eba43be3e26bd9399c6765de439cb9fb
parent8a02aea6fc3636f2f5d725c1772a0b11721c1fbd
[ARM] Don't confuse the scheduler for very large VLDMDIA etc.

ARMBaseInstrInfo::getNumLDMAddresses is making bad assumptions about the
memory operands of load and store-multiple operations.  This doesn't
really fix the problem properly, but it's enough to prevent crashing,
at least.

Fixes https://bugs.llvm.org/show_bug.cgi?id=41231 .

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

llvm-svn: 357109
llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
llvm/test/CodeGen/ARM/vldmia-sched.mir [new file with mode: 0644]