- Register scavenger should use MachineRegisterInfo and internal map to find the...
authorEvan Cheng <evan.cheng@apple.com>
Thu, 20 Nov 2008 02:32:35 +0000 (02:32 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 20 Nov 2008 02:32:35 +0000 (02:32 +0000)
commitd37c13cfd1bf4b08d0b99d93c799a1caa74cf3c6
treed2ae90ed4c43c90d89fa90448c066c1435b441ff
parent97c573d5de4f729f9b3a5db59c6daa3a6fc7efe4
- Register scavenger should use MachineRegisterInfo and internal map to find the first use of a register after a given machine instruction.
- When scavenging a register, in addition to the spill, insert a restore before the first use.
- Abort if client is looking to scavenge a register even when a previously scavenged register is still live.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59697 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/RegisterScavenging.h
lib/CodeGen/RegisterScavenging.cpp
test/CodeGen/ARM/2008-11-19-ScavengerAssert.ll [new file with mode: 0644]