OSDN Git Service

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)
commitbdb370d8d6ecf50298d2b6009ad267550037feed
treea670e6100769156ad813fa680db31fe445c496e0
parent2af133efaa100bfa78b45517a1c9a422a0b191b0
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