Adjust the scavenge register spilling to allow the target to choose an
authorJim Grosbach <grosbach@apple.com>
Mon, 19 Oct 2009 22:27:30 +0000 (22:27 +0000)
committerJim Grosbach <grosbach@apple.com>
Mon, 19 Oct 2009 22:27:30 +0000 (22:27 +0000)
commitd482f55af135081aee7f7ab972bb8973f189c88f
treeab7c243668857e2eeed65a76d0a565783c224de8
parent4d1522234192704f45dfd2527c2913fa60be616e
Adjust the scavenge register spilling to allow the target to choose an
appropriate restore location for the spill as well as perform the actual
save and restore.

The Thumb1 target uses this to make sure R12 is not clobbered while a spilled
scavenger register is live there.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84554 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetRegisterInfo.h
lib/CodeGen/RegisterScavenging.cpp
lib/Target/ARM/Thumb1RegisterInfo.cpp
lib/Target/ARM/Thumb1RegisterInfo.h