Implement PR3495: local spiller optimization. The local spiller can now keep availabi...
authorEvan Cheng <evan.cheng@apple.com>
Wed, 11 Feb 2009 08:24:21 +0000 (08:24 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 11 Feb 2009 08:24:21 +0000 (08:24 +0000)
commit752272a5e553313f7b0397a06a23b4fe8ac013c4
treee8f806533ea4d6d3a39fe5fb5fc1f79abead66c8
parent47ac0f0c7c39289f5970688154e385be22b7f293
Implement PR3495: local spiller optimization. The local spiller can now keep availability information over BB boundaries. It visits BB's in depth first order. After visiting a BB if it find a successor which has a single predecessor it visits the successor next without clearing the availability information. This allows the successor to omit reloads or change them into copies.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64298 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/VirtRegMap.cpp
test/CodeGen/X86/pr3495.ll [new file with mode: 0644]