Besides removing phi cycles that reduce to a single value, also remove dead
authorBob Wilson <bob.wilson@apple.com>
Sat, 13 Feb 2010 00:31:44 +0000 (00:31 +0000)
committerBob Wilson <bob.wilson@apple.com>
Sat, 13 Feb 2010 00:31:44 +0000 (00:31 +0000)
commitbf9b221c006a99d6f117c1048412859d5637bcde
treecd3c5edb01642b2a7cf6f59ed13a8b28e1489359
parent39125d8ef94cbadccd7339d3344e114dedaab12c
Besides removing phi cycles that reduce to a single value, also remove dead
phi cycles.  Adjust a few tests to keep dead instructions from being optimized
away.  This (together with my previous change for phi cycles) fixes Apple
radar 7627077.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96057 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/LLVMTargetMachine.cpp
lib/CodeGen/OptimizePHIs.cpp
test/CodeGen/Thumb2/2010-02-11-phi-cycle.ll
test/CodeGen/Thumb2/thumb2-spill-q.ll
test/CodeGen/X86/pre-split8.ll
test/CodeGen/X86/pre-split9.ll