Never delete instructions that define reserved registers.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 9 Feb 2012 00:15:39 +0000 (00:15 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 9 Feb 2012 00:15:39 +0000 (00:15 +0000)
commit39284d191af214f99736e6836be4f4ff9e8f1378
tree24f87a8b404347a16e3aa990daff1b10809d4064
parenta8fc171b3f703ad8bda50a22e9227eee0822eeec
Never delete instructions that define reserved registers.

I think this was already the intention, but DeadMachineInstructionElim
was accidentally tracking the liveness of reserved registers. Now,
instructions with reserved defs are never deleted.

This prevents the call stack adjustment instructions from getting
deleted when enabling register masks.

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