projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ece96f5
)
Fix for -sched-high-latency-cycles in sched=list-ilp mode.
author
Andrew Trick
<atrick@apple.com>
Sat, 5 Mar 2011 09:18:16 +0000
(09:18 +0000)
committer
Andrew Trick
<atrick@apple.com>
Sat, 5 Mar 2011 09:18:16 +0000
(09:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127071
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
b/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
index 25f0927a3c1f12489e2411af06b0a33d31e0f400..67005d7e637a072b40dd42a2c8597032bb09fca6 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
+++ b/
lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
@@
-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;