[Hexagon] Update AnalyzeBranch, etc target hooks
authorBrendon Cahoon <bcahoon@codeaurora.org>
Fri, 8 May 2015 16:16:29 +0000 (16:16 +0000)
committerBrendon Cahoon <bcahoon@codeaurora.org>
Fri, 8 May 2015 16:16:29 +0000 (16:16 +0000)
commit7fd56b1e4a6292a1fc0410589d5a964638f1033b
tree6425be1473a9f700385f63b3645345000230fed4
parentd7e20e7be8d88a5ef134c9e5b37fec847f47c8ab
[Hexagon] Update AnalyzeBranch, etc target hooks

Improved the AnalyzeBranch, InsertBranch, and RemoveBranch
functions in order to handle more of our branch instructions.
This requires changes to analyzeCompare and PredicateInstructions.
Specifically, we've added support for new value compare jumps,
improved handling of endloop, added more compare instructions,
and improved support for predicate instructions.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236876 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Hexagon/HexagonHardwareLoops.cpp
lib/Target/Hexagon/HexagonInstrInfo.cpp
lib/Target/Hexagon/HexagonInstrInfo.h
test/CodeGen/Hexagon/alu64.ll [new file with mode: 0644]
test/CodeGen/Hexagon/remove-endloop.ll [new file with mode: 0644]