When MachineLICM is hoisting a physical register after regalloc, make sure the
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 20 Apr 2010 18:45:47 +0000 (18:45 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 20 Apr 2010 18:45:47 +0000 (18:45 +0000)
commit9196ab640559ca473931b1ad74b90bbed516272f
tree5742ed1e477c117df74522baaecb3f2716b3e1ca
parent56a1afb6b06b63efb85efcfd12f07aa80ca6ab3b
When MachineLICM is hoisting a physical register after regalloc, make sure the
register is not killed in the loop.

This fixes 188.ammp on ARM where the post-ra scheduler would grab a register
that looked available but wasn't.

A testcase would be huge and fragile, sorry.

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