summaryrefslogtreecommitdiff
path: root/lib
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
commit9a65d6afc203fb8e44a807f84e3d370f16b08a5a (patch)
treedf41ad7e2e421cb5cad2b9065fb16fe3311bcd88 /lib
parent3f23744df4809eba94284e601e81489212c974d4 (diff)
downloadllvm-9a65d6afc203fb8e44a807f84e3d370f16b08a5a.tar.gz
llvm-9a65d6afc203fb8e44a807f84e3d370f16b08a5a.tar.bz2
llvm-9a65d6afc203fb8e44a807f84e3d370f16b08a5a.tar.xz
Remove some special-case logic in ScheduleDAGSDNodes's
latency computation code that is no longer needed with the new method for handling latencies. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61074 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
index 21df142ff3..08d6702fc8 100644
--- a/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
+++ b/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