diff options
author | Chris Lattner <sabre@nondot.org> | 2004-11-18 05:19:02 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-11-18 05:19:02 +0000 |
commit | 1e409bfd2adf441b92f84e09706b768513f42c85 (patch) | |
tree | cbde6ae966c7a6a358ab93f67d71cbc2e5f8f20a | |
parent | 0113638073ffe734a5fe4ffa1d534c9e044fcb06 (diff) |
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
-rw-r--r-- | lib/CodeGen/LiveInterval.cpp | 4 |
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; |