mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-26 23:29:22 +00:00
Fix for -sched-high-latency-cycles in sched=list-ilp mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127071 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ece96f5713
commit
5e84e3ccaa
@ -515,7 +515,9 @@ void ScheduleDAGSDNodes::ComputeLatency(SUnit *SU) {
|
||||
}
|
||||
|
||||
if (!InstrItins || InstrItins->isEmpty()) {
|
||||
if (SU->getNode() && TII->isHighLatencyDef(SU->getNode()->getOpcode()))
|
||||
SDNode *N = SU->getNode();
|
||||
if (N && N->isMachineOpcode() &&
|
||||
TII->isHighLatencyDef(N->getMachineOpcode()))
|
||||
SU->Latency = HighLatencyCycles;
|
||||
else
|
||||
SU->Latency = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user