mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Support for Hexagon architectural feature, new value jump.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155366 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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()) {
|
||||
|
Reference in New Issue
Block a user