summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveInterval.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-07-25 07:47:25 +0000
committerChris Lattner <sabre@nondot.org>2004-07-25 07:47:25 +0000
commitbbe845b9691ff90a27ad6531dad7aac33cf25e16 (patch)
tree82bc5d049904452f07119dc9b2ac3a4628e1cd01 /llvm/lib/CodeGen/LiveInterval.cpp
parentd1980dbeba6b41fef42ee5ac71e161cbb85ea30e (diff)
downloadbcm5719-llvm-bbe845b9691ff90a27ad6531dad7aac33cf25e16.tar.gz
bcm5719-llvm-bbe845b9691ff90a27ad6531dad7aac33cf25e16.zip
Fix the sense of joinable
llvm-svn: 15196
Diffstat (limited to 'llvm/lib/CodeGen/LiveInterval.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveInterval.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/LiveInterval.cpp b/llvm/lib/CodeGen/LiveInterval.cpp
index 53265111048..6bd441f6431 100644
--- a/llvm/lib/CodeGen/LiveInterval.cpp
+++ b/llvm/lib/CodeGen/LiveInterval.cpp
@@ -116,16 +116,16 @@ bool LiveInterval::joinable(const LiveInterval &other, unsigned CopyIdx) const {
if (i->start == j->start) {
// If this is not the allowed value merge, we cannot join.
if (i->ValId != ThisValIdx || j->ValId != OtherValIdx)
- return true;
+ return false;
} else if (i->start < j->start) {
if (i->end > j->start) {
if (i->ValId != ThisValIdx || j->ValId != OtherValIdx)
- return true;
+ return false;
}
} else {
if (j->end > i->start) {
if (i->ValId != ThisValIdx || j->ValId != OtherValIdx)
- return true;
+ return false;
}
}
if (i->end < j->end)
@@ -134,7 +134,7 @@ bool LiveInterval::joinable(const LiveInterval &other, unsigned CopyIdx) const {
++j;
}
- return false;
+ return true;
}
OpenPOWER on IntegriCloud