Don't tamper with <undef> operands in MachineInstr::addRegisterKilled.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 4 Aug 2009 20:09:25 +0000 (20:09 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 4 Aug 2009 20:09:25 +0000 (20:09 +0000)
commitefb8e3e113cbf359d6a838c3b37fedc8305d19bb
treeb59d2a13fc2395df49dfa90e074abe586d5e137c
parentded2e3b0d02998b3bb99b5089d05fca1e0097868
Don't tamper with <undef> operands in MachineInstr::addRegisterKilled.

For an undef operand, MO.getReg() is meaningless and we should not use it.
Undef operands should be skipped entirely.

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