[Hexagon] Pick the right branch opcode depending on branch probabilities
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Thu, 2 Mar 2017 21:49:49 +0000 (21:49 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Thu, 2 Mar 2017 21:49:49 +0000 (21:49 +0000)
commit06a22af3899d244ff4b78af6c476403025e26255
tree15d51943f25c54ad3b98460f9420103bfdf1cb93
parent2f35f8a7a234d7f1c14a99d31a776b0a7a7383b3
[Hexagon] Pick the right branch opcode depending on branch probabilities

Specifically, pick the opcode with the correct branch prediction, i.e.
jump:t or jump:nt.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296821 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Hexagon/HexagonInstrInfo.cpp
test/CodeGen/Hexagon/builtin-expect.ll [new file with mode: 0644]