diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-05-19 23:59:27 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-05-19 23:59:27 +0000 |
commit | a991ea5f7f2df661dc1ad7bd230d3a401dfb6411 (patch) | |
tree | 14e339760a728ca8bd06cf8a420fb5fc92815f39 /lib/CodeGen/RegisterCoalescer.cpp | |
parent | 7ebed91fddbcd259d03c4b438719ac1ce2a4fc87 (diff) | |
download | llvm-a991ea5f7f2df661dc1ad7bd230d3a401dfb6411.tar.gz llvm-a991ea5f7f2df661dc1ad7bd230d3a401dfb6411.tar.bz2 llvm-a991ea5f7f2df661dc1ad7bd230d3a401dfb6411.tar.xz |
Simplify overlap check.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157137 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegisterCoalescer.cpp')
-rw-r--r-- | lib/CodeGen/RegisterCoalescer.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/CodeGen/RegisterCoalescer.cpp b/lib/CodeGen/RegisterCoalescer.cpp index ca5d280739..7831906c62 100644 --- a/lib/CodeGen/RegisterCoalescer.cpp +++ b/lib/CodeGen/RegisterCoalescer.cpp @@ -1397,15 +1397,8 @@ bool RegisterCoalescer::joinIntervals(CoalescerPair &CP) { while (I != IE && J != JE) { // Determine if these two live ranges overlap. - bool Overlaps; - if (I->start < J->start) { - Overlaps = I->end > J->start; - } else { - Overlaps = J->end > I->start; - } - // If so, check value # info to determine if they are really different. - if (Overlaps) { + if (I->end > J->start && J->end > I->start) { // If the live range overlap will map to the same value number in the // result liverange, we can still coalesce them. If not, we can't. if (LHSValNoAssignments[I->valno->id] != |