Delete dead PHI machine instructions. These can be created due to type
authorBob Wilson <bob.wilson@apple.com>
Wed, 10 Feb 2010 22:58:57 +0000 (22:58 +0000)
committerBob Wilson <bob.wilson@apple.com>
Wed, 10 Feb 2010 22:58:57 +0000 (22:58 +0000)
commit5e2b05a71e81b28712b77419f68657462494e103
tree8029ae1969d5fb607781fba7e98b005022475af7
parentb8ff934e94637462901ebd1c849aeaf71350dacc
Delete dead PHI machine instructions.  These can be created due to type
legalization even when the IR-level optimizer has removed dead phis, such
as when the high half of an i64 value is unused on a 32-bit target.
I had to adjust a few test cases that had dead phis.
This is a partial fix for Radar 7627077.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95816 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/DeadMachineInstructionElim.cpp
test/CodeGen/ARM/remat.ll
test/CodeGen/X86/2007-10-05-3AddrConvert.ll