OSDN Git Service

[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)
commit6912fe6f3571f563fa1f39c349567e537b11098c
tree7d739e214b4b103671bf69a3580e148bf6bb39a6
parentc2c3c689e6f5c85b270ed6b403674f7349cf7ef1
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237373 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Hexagon/HexagonHardwareLoops.cpp
test/CodeGen/Hexagon/hwloop-ph-deadcode.ll [new file with mode: 0644]