Recompute kill flags from live intervals after coalescing instead of trying to
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 28 Apr 2010 18:28:39 +0000 (18:28 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 28 Apr 2010 18:28:39 +0000 (18:28 +0000)
commit0fd109963aa86021d5b78ccddd62d80ccafdb010
treec8c63fbf89e22bbd6c81e29c606868eec9d7139e
parent7261fb2a6f1458a70e55ba03fb71f7ab70af8103
Recompute kill flags from live intervals after coalescing instead of trying to
update them. Computing kill flags is notoriously difficult, and the coalescer
would get it wrong sometimes, and it would completely skip physical registers.

Now we simply remove kill flags based on the live intervals after coalescing.
This is a few percent slower, but now we get correct kill flags for physical
registers after coalescing.

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