Simplify RegScavenger::forward a bit more.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 8 Aug 2009 13:18:47 +0000 (13:18 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 8 Aug 2009 13:18:47 +0000 (13:18 +0000)
commitdffb051c21d32209c601ca0ca6baae75b6c6463f
treef72fce48e93ea8ecaad15d40472456bceb4de997
parent20c08e534f04cafab755ce9c78882a954c0fb032
Simplify RegScavenger::forward a bit more.

Verify that early clobber registers and their aliases are not used.

All changes to RegsAvailable are now done as a transaction so the order of
operands makes no difference.

The included test case is from PR4686. It has behaviour that was dependent on the order of operands.

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