diff options
author | Sirish Pande <spande@codeaurora.org> | 2012-04-23 17:49:28 +0000 |
---|---|---|
committer | Sirish Pande <spande@codeaurora.org> | 2012-04-23 17:49:28 +0000 |
commit | 2c7bf00fba0c4fe7661495be69175f3fe14e405f (patch) | |
tree | 44bcc78333ec6de6f2d458e94c212f2e99b968a8 /llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp | |
parent | 6cd2251598b7835aee1df3eb04a6651b1e619947 (diff) | |
download | bcm5719-llvm-2c7bf00fba0c4fe7661495be69175f3fe14e405f.tar.gz bcm5719-llvm-2c7bf00fba0c4fe7661495be69175f3fe14e405f.zip |
Support for Hexagon architectural feature, new value jump.
llvm-svn: 155366
Diffstat (limited to 'llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp')
-rw-r--r-- | llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp b/llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp index bbb33232233..5b737d01482 100644 --- a/llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp +++ b/llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp @@ -2523,6 +2523,26 @@ isSpillPredRegOp(const MachineInstr *MI) const { } } +bool HexagonInstrInfo::isNewValueJumpCandidate(const MachineInstr *MI) const { + switch (MI->getOpcode()) { + case Hexagon::CMPEQrr: + case Hexagon::CMPEQri: + case Hexagon::CMPLTrr: + case Hexagon::CMPGTrr: + case Hexagon::CMPGTri: + case Hexagon::CMPLTUrr: + case Hexagon::CMPGTUrr: + case Hexagon::CMPGTUri: + case Hexagon::CMPGEri: + case Hexagon::CMPGEUri: + return true; + + default: + return false; + } + return false; +} + bool HexagonInstrInfo:: isConditionalTransfer (const MachineInstr *MI) const { switch (MI->getOpcode()) { |