[ARM] Remove a dead ADD during the creation of TBBs
authorDavid Green <david.green@arm.com>
Thu, 6 Apr 2017 08:32:47 +0000 (08:32 +0000)
committerDavid Green <david.green@arm.com>
Thu, 6 Apr 2017 08:32:47 +0000 (08:32 +0000)
commit1b4b59a4156083c7703436a7d6bed2f6f56952f5
tree9c3d4519e8802ac6b0b2d64cf648fc5e6076b723
parent5eeb1dd42ef304c6a2f85d3fb9eda03c932f1fe0
[ARM] Remove a dead ADD during the creation of TBBs

During the optimisation of jump tables in the constant island pass,
an extra ADD could be left over, now dead but not removed.

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

llvm-svn: 299634
llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
llvm/test/CodeGen/Thumb2/tbb-removeadd.mir [new file with mode: 0644]