Fixed a bug in the PBQP allocator's findCoalesces method.
authorLang Hames <lhames@gmail.com>
Tue, 9 Feb 2010 00:50:27 +0000 (00:50 +0000)
committerLang Hames <lhames@gmail.com>
Tue, 9 Feb 2010 00:50:27 +0000 (00:50 +0000)
commit0b23dc0cc8fb2967dc08574910536cc074863bcb
tree9d31802b87a4d189f79a0278ef9f846bdc775bf7
parente16b0fc3cb607bd0b8240733e2fe829d78df3833
Fixed a bug in the PBQP allocator's findCoalesces method.

Previously spill registers, whose def indexes are not defined, would sometimes be improperly marked as coalescable with conflicting registers. The new findCoalesces routine conservatively assumes that any register with at least one undefined def is not coalescable with any register it interferes with.

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