Clean up scavengeRegister() a bit to prefer available regs, which allows
authorJim Grosbach <grosbach@apple.com>
Thu, 8 Jul 2010 16:49:26 +0000 (16:49 +0000)
committerJim Grosbach <grosbach@apple.com>
Thu, 8 Jul 2010 16:49:26 +0000 (16:49 +0000)
commited903d746d96d071305b8182680595ba281b3f12
treef0c6e5950bc015164ae4160b037050af13a89ddb
parent0bc25f40402f48ba42fc45403f635b20d90fabb3
Clean up scavengeRegister() a bit to prefer available regs, which allows
the simplification of frame index register scavenging to not have to check
for available registers directly and instead just let scavengeRegister()
handle it.

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