OSDN Git Service

[ARM] Add MemOperand to LDRcp to enable DCE.
authorEli Friedman <efriedma@codeaurora.org>
Fri, 9 Nov 2018 23:09:17 +0000 (23:09 +0000)
committerEli Friedman <efriedma@codeaurora.org>
Fri, 9 Nov 2018 23:09:17 +0000 (23:09 +0000)
commit35ef1bd84b873490de4cf1231e3f4433684a57d4
tree7d21034180fb65f122130a6c22bbe16e849bdb35
parentbd0f067b12310397d4201e8cb862512de788ec18
[ARM] Add MemOperand to LDRcp to enable DCE.

LDRcp should be deleted when the dest register is dead in register
coalescing. Without MemOp, dead LDRcp will cause dead constant pool
value which references to non-existing label.

Patch by Yin Ma.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346563 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMFastISel.cpp
test/CodeGen/ARM/ldrcppic.ll [new file with mode: 0644]