mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 16:17:17 +00:00
AArch64: Restrict macroop fusion heuristics to cyclone.
Even though this is just some hinting for the scheduler it doesn't make sense to do that unless you know the target can perform the fusion. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242732 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1445,6 +1445,7 @@ bool AArch64InstrInfo::shouldClusterLoads(MachineInstr *FirstLdSt,
|
||||
|
||||
bool AArch64InstrInfo::shouldScheduleAdjacent(MachineInstr *First,
|
||||
MachineInstr *Second) const {
|
||||
if (Subtarget.isCyclone()) {
|
||||
// Cyclone can fuse CMN, CMP, TST followed by Bcc.
|
||||
unsigned SecondOpcode = Second->getOpcode();
|
||||
if (SecondOpcode == AArch64::Bcc) {
|
||||
@@ -1479,6 +1480,7 @@ bool AArch64InstrInfo::shouldScheduleAdjacent(MachineInstr *First,
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user