It is illegal for PHI nodes to have zero values, delete the code to handle them

llvm-svn: 4071
This commit is contained in:
Chris Lattner 2002-10-08 17:07:39 +00:00
parent 2e0fb39d87
commit 394617f38b
1 changed files with 0 additions and 2 deletions

View File

@ -630,8 +630,6 @@ Instruction *InstCombiner::visitCastInst(CastInst &CI) {
//
Instruction *InstCombiner::visitPHINode(PHINode &PN) {
// If the PHI node only has one incoming value, eliminate the PHI node...
if (PN.getNumIncomingValues() == 0)
return ReplaceInstUsesWith(PN, Constant::getNullValue(PN.getType()));
if (PN.getNumIncomingValues() == 1)
return ReplaceInstUsesWith(PN, PN.getIncomingValue(0));