If two-address def is dead and the instruction does not define other registers, and...
authorEvan Cheng <evan.cheng@apple.com>
Sat, 21 Feb 2009 03:14:25 +0000 (03:14 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Sat, 21 Feb 2009 03:14:25 +0000 (03:14 +0000)
commit28c7ce3fd44143b595f05436edbaebea9e5d47c3
tree26ee05cd0e2c8a0415683d9c4ab4399e5ea4e82e
parentd9fb7124035d6f95fb08c5157ab1813fbb2a282f
If two-address def is dead and the instruction does not define other registers, and it doesn't produce side effects, just delete the instruction.

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