Fix a long-standing spiller bug:
authorEvan Cheng <evan.cheng@apple.com>
Thu, 14 Dec 2006 07:54:05 +0000 (07:54 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 14 Dec 2006 07:54:05 +0000 (07:54 +0000)
commit7a0d51c8e3d6cdc6d961f6525f97f8926fb76c83
tree7adcde95c80848de9531083a042556a7d570a462
parent8e58a1b17bb57e6ffa187a0ec758f9a1bed7685b
Fix a long-standing spiller bug:
If a spillslot value is available in a register, and there is a noop copy that
targets that register, the spiller correctly decide not to invalidate the
spillslot register.

However, even though the noop copy does not clobbers the value. It does start a
new intersecting live range. That means the spillslot register is available for
use but should not be reused for a two-address instruction modref operand which
would clobber the new live range.

When we remove the noop copy, update the available information by clearing the
canClobber bit.

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