A REG_SEQUENCE instruction may use the same register twice.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 9 Aug 2010 20:19:16 +0000 (20:19 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 9 Aug 2010 20:19:16 +0000 (20:19 +0000)
commite4b9c4f1871c5f17681fdf143104c6834055b25b
tree0c46735cb6425e607fc2233342b6e5e8c1911b1b
parent9de1ac267e197d40cec7a14041f2bf69498536c9
A REG_SEQUENCE instruction may use the same register twice.

If we are emitting COPY instructions for the REG_SEQUENCE, make sure the kill
flag goes on the last COPY. Otherwise we may be using a killed register.

<rdar://problem/8287792>

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