mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
Fix for -sched-high-latency-cycles in sched=list-ilp mode.
llvm-svn: 127071
This commit is contained in:
parent
e310d30fba
commit
dd4a20e7d7
@ -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