summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-12-16 03:31:11 +0000
committerDan Gohman <gohman@apple.com>2008-12-16 03:31:11 +0000
commit405f2197a47e6e6fb1104485b35a7a1fcbd35367 (patch)
treec109ab87c6bd9a9a9de18bbe081b4cc64752bf12 /llvm/lib/CodeGen
parentdddc1ac7ea7b9e580a2321dd437e59387fbf4824 (diff)
downloadbcm5719-llvm-405f2197a47e6e6fb1104485b35a7a1fcbd35367.tar.gz
bcm5719-llvm-405f2197a47e6e6fb1104485b35a7a1fcbd35367.zip
Remove some special-case logic in ScheduleDAGSDNodes's
latency computation code that is no longer needed with the new method for handling latencies. llvm-svn: 61074
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
index 21df142ff34..08d6702fc81 100644
--- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
@@ -196,12 +196,6 @@ void ScheduleDAGSDNodes::ComputeLatency(SUnit *SU) {
// Compute the latency for the node. We use the sum of the latencies for
// all nodes flagged together into this SUnit.
- if (InstrItins.isEmpty()) {
- // No latency information.
- SU->Latency = 1;
- return;
- }
-
SU->Latency = 0;
bool SawMachineOpcode = false;
for (SDNode *N = SU->getNode(); N; N = N->getFlaggedNode())
@@ -210,10 +204,6 @@ void ScheduleDAGSDNodes::ComputeLatency(SUnit *SU) {
SU->Latency +=
InstrItins.getLatency(TII->get(N->getMachineOpcode()).getSchedClass());
}
-
- // Ensure that CopyToReg and similar nodes have a non-zero latency.
- if (!SawMachineOpcode)
- SU->Latency = 1;
}
/// CountResults - The results of target nodes have register or immediate
OpenPOWER on IntegriCloud