Avoid hoisting spills when looking at a copy from another register that is also
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 11 May 2011 18:25:10 +0000 (18:25 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 11 May 2011 18:25:10 +0000 (18:25 +0000)
commit443443cc8399d6753cac828516ea27531e296769
treee8669a8989b387960be3c07d97791365c010b9f8
parente8b9f16a4c2db968db9d3d147b95ab1293d3383c
Avoid hoisting spills when looking at a copy from another register that is also
about to be spilled.

This can only happen when two extra snippet registers are included in the spill,
and there is a copy between them. Hoisting the spill creates problems because
the hoist will mark the copy for later dead code elimination, and spilling the
second register will turn the copy into a spill.

<rdar://problem/9420853>

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