[llvm-commits] [llvm] r127071 - /llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
Andrew Trick
atrick at apple.com
Sat Mar 5 01:18:16 PST 2011
Author: atrick
Date: Sat Mar 5 03:18:16 2011
New Revision: 127071
URL: http://llvm.org/viewvc/llvm-project?rev=127071&view=rev
Log:
Fix for -sched-high-latency-cycles in sched=list-ilp mode.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp?rev=127071&r1=127070&r2=127071&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp Sat Mar 5 03:18:16 2011
@@ -515,7 +515,9 @@
}
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;
More information about the llvm-commits
mailing list