summaryrefslogtreecommitdiff
path: root/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
commit1e409bfd2adf441b92f84e09706b768513f42c85 (patch)
treecbde6ae966c7a6a358ab93f67d71cbc2e5f8f20a /lib/CodeGen/LiveInterval.cpp
parent0113638073ffe734a5fe4ffa1d534c9e044fcb06 (diff)
downloadllvm-1e409bfd2adf441b92f84e09706b768513f42c85.tar.gz
llvm-1e409bfd2adf441b92f84e09706b768513f42c85.tar.bz2
llvm-1e409bfd2adf441b92f84e09706b768513f42c85.tar.xz
Moderate head scratching reveals that this conditional is not needed. If
i->start == j->start, then certainly i->end > j->start. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17943 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveInterval.cpp')
-rw-r--r--lib/CodeGen/LiveInterval.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/CodeGen/LiveInterval.cpp b/lib/CodeGen/LiveInterval.cpp
index 4a1720f701..80a6ed290c 100644
--- a/lib/CodeGen/LiveInterval.cpp
+++ b/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;