Fix an exotic bug that only showed up in an internal test case.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 15 Jun 2010 18:49:14 +0000 (18:49 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 15 Jun 2010 18:49:14 +0000 (18:49 +0000)
commit1b2f94c621250889cb328816714e24671057f705
tree0fb6f8f328b9c8427978c85052fe9062aa656d54
parent669db04130911252a38d4470a7c136ffc26ec577
Fix an exotic bug that only showed up in an internal test case.

SimpleRegisterCoalescing::JoinIntervals() uses CoalescerPair to determine if a
copy is coalescable, and in very rare cases it can return true where LHS is not
live - the coalescable copy can come from an alias of the physreg in LHS.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106021 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SimpleRegisterCoalescing.cpp