[Hexagon] Remove dead constant assignment in hardware loop pass
authorBrendon Cahoon <bcahoon@codeaurora.org>
Thu, 14 May 2015 17:31:40 +0000 (17:31 +0000)
committerBrendon Cahoon <bcahoon@codeaurora.org>
Thu, 14 May 2015 17:31:40 +0000 (17:31 +0000)
commit485bea74ad57dfeb67c499f71c642d881feb6b85
treee10fc7f53555a1d5c9af651b7e9912770b8b1f19
parent9b673bf752776455dd9af7a2b8a4fcfdec48594c
[Hexagon] Remove dead constant assignment in hardware loop pass

After converting a loop to a hardware loop, the pass should remove
any unnecessary instructions from the old compare-and-branch
code. This patch removes a dead constant assignment that was
used in the compare instruction.

Differential Revision: http://reviews.llvm.org/D9720

llvm-svn: 237373
llvm/lib/Target/Hexagon/HexagonHardwareLoops.cpp
llvm/test/CodeGen/Hexagon/hwloop-ph-deadcode.ll [new file with mode: 0644]