Fix for codegen bug that could cause illegal cmn instruction generation
authorLouis Gerbarg <lgg@apple.com>
Mon, 14 Apr 2014 21:05:05 +0000 (21:05 +0000)
committerLouis Gerbarg <lgg@apple.com>
Mon, 14 Apr 2014 21:05:05 +0000 (21:05 +0000)
commit261f0df185a7cf6a8ef18b530833567ce11246e3
tree48d05e5103436c91e2a72fa09676de98fec9735d
parent27539d46ccde86358f32226907149083d7a4dcf7
Fix for codegen bug that could cause illegal cmn instruction generation

In rare cases the dead definition elimination pass code can cause illegal cmn
instructions when it replaces dead registers on instructions that use
unmaterialized frame indexes. This patch disables the dead definition
optimization for instructions which include frame index operands.

rdar://16438284

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206208 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM64/ARM64DeadRegisterDefinitionsPass.cpp
test/CodeGen/ARM64/dead-def-frame-index.ll [new file with mode: 0644]