Hoist spills within a basic block.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 9 Jul 2011 00:25:03 +0000 (00:25 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 9 Jul 2011 00:25:03 +0000 (00:25 +0000)
commit56573cc1aee419b5cc9e3446a59a73577bf26fac
tree04d94a1e6f3979f9a4483f7dfacd7318c21d8e8b
parent439d05d587b225d912ece9ce038ae298bc55e1c2
Hoist spills within a basic block.

Try to move spills as early as possible in their basic block. This can
help eliminate interferences by shortening the live range being
spilled.

This fixes PR10221.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134776 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/InlineSpiller.cpp
test/CodeGen/X86/reghinting.ll [new file with mode: 0644]