When processing frame index virtual registers, consider all available registers
authorJim Grosbach <grosbach@apple.com>
Thu, 8 Jul 2010 00:38:54 +0000 (00:38 +0000)
committerJim Grosbach <grosbach@apple.com>
Thu, 8 Jul 2010 00:38:54 +0000 (00:38 +0000)
commitd9642faf7c66273eb3a8d99e5fa6b542da5374dd
tree046f3eaf0f3e02ebbc6ad7d174cce551c72b4817
parent0238f8c430050d23ef861169bb4c4f930af0ef97
When processing frame index virtual registers, consider all available registers
(if there are any) and use the one which remains available for the longest
rather than just using the first one. This should help enable better re-use
of the loaded frame index values. rdar://7318760

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