More accurate estimate / tracking of register pressure.
authorEvan Cheng <evan.cheng@apple.com>
Wed, 20 Oct 2010 22:03:58 +0000 (22:03 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 20 Oct 2010 22:03:58 +0000 (22:03 +0000)
commit134982daa9bcd87f79c357e3a2686804b9baddd9
treea670e6100769156ad813fa680db31fe445c496e0
parente4d31593c5b0693480e697d7aeb0a24edcf53870
More accurate estimate / tracking of register pressure.
- Initial register pressure in the loop should be all the live defs into the
  loop. Not just those from loop preheader which is often empty.
- When an instruction is hoisted, update register pressure from loop preheader
  to the original BB.
- Treat only use of a virtual register as kill since the code is still SSA.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116956 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineLICM.cpp
test/CodeGen/Thumb2/cross-rc-coalescing-2.ll
test/CodeGen/X86/2009-02-26-MachineLICMBug.ll