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 | 6e0c3f44baebdcc1255f988d3b695ee0abd9b428 (patch) | |
| tree | 4bc2bc269ff950bf011c30fd0133dbf5f7eafb35 /llvm/lib/CodeGen/LiveInterval.cpp | |
| parent | 51f6635e42145ea7267dd5d9ac089bfc8254aaa5 (diff) | |
| download | bcm5719-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.cpp | 4 |
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; |

