Simplify RegScavenger::FindUnusedReg.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 18 Aug 2009 21:14:54 +0000 (21:14 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 18 Aug 2009 21:14:54 +0000 (21:14 +0000)
commitc0823fe7c679ca8f7d1667a310c2fca97b9402d5
tree2106aeae81f3562cd04d6387d271ab62e0770706
parent1123135dbfa776bbe4c2120a16098d81e0850a76
Simplify RegScavenger::FindUnusedReg.

- Drop the Candidates argument and fix all callers. Now that RegScavenger
  tracks available registers accurately, there is no need to restict the
  search.
- Make sure that no aliases of the found register are in use. This was a potential bug.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79369 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/RegisterScavenging.h
lib/CodeGen/RegisterScavenging.cpp
lib/Target/ARM/ARMBaseRegisterInfo.cpp
lib/Target/ARM/ARMLoadStoreOptimizer.cpp
lib/Target/Blackfin/BlackfinRegisterInfo.cpp
lib/Target/PowerPC/PPCRegisterInfo.cpp