summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveInterval.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-11-18 05:19:02 +0000
committerChris Lattner <sabre@nondot.org>2004-11-18 05:19:02 +0000
commit6e0c3f44baebdcc1255f988d3b695ee0abd9b428 (patch)
tree4bc2bc269ff950bf011c30fd0133dbf5f7eafb35 /llvm/lib/CodeGen/LiveInterval.cpp
parent51f6635e42145ea7267dd5d9ac089bfc8254aaa5 (diff)
downloadbcm5719-llvm-6e0c3f44baebdcc1255f988d3b695ee0abd9b428.tar.gz
bcm5719-llvm-6e0c3f44baebdcc1255f988d3b695ee0abd9b428.zip
Moderate head scratching reveals that this conditional is not needed. If
i->start == j->start, then certainly i->end > j->start. llvm-svn: 17943
Diffstat (limited to 'llvm/lib/CodeGen/LiveInterval.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveInterval.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/LiveInterval.cpp b/llvm/lib/CodeGen/LiveInterval.cpp
index 4a1720f7013..80a6ed290c7 100644
--- a/llvm/lib/CodeGen/LiveInterval.cpp
+++ b/llvm/lib/CodeGen/LiveInterval.cpp
@@ -83,14 +83,10 @@ bool LiveInterval::overlapsFrom(const LiveInterval& other,
}
while (i != ie && j != je) {
- if (i->start == j->start)
- return true;
-
if (i->start > j->start) {
std::swap(i, j);
std::swap(ie, je);
}
- assert(i->start < j->start);
if (i->end > j->start)
return true;
OpenPOWER on IntegriCloud