diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-10-17 21:31:34 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-10-17 21:31:34 +0000 | 
| commit | 107c15c33dd5ad7194bc43759a7ce31882283a51 (patch) | |
| tree | 69cbe745d399bbfd6277bf11bf3c9b836a74247c /llvm/lib/Transforms | |
| parent | 215c7ebaa6f6aa2deca6d8f6f5498a2e4c6c1590 (diff) | |
| download | bcm5719-llvm-107c15c33dd5ad7194bc43759a7ce31882283a51.tar.gz bcm5719-llvm-107c15c33dd5ad7194bc43759a7ce31882283a51.zip | |
Remove printout, realize that instructions in the entry block dominate all
other blocks.
llvm-svn: 17099
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index 784e80429d9..e3c45d40fb2 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp @@ -3386,12 +3386,12 @@ Instruction *InstCombiner::visitPHINode(PHINode &PN) {      if (Instruction *I = dyn_cast<Instruction>(V)) {        // We know that the instruction dominates the PHI if there are no undef        // values coming in. -      for (unsigned i = 0, e = PN.getNumIncomingValues(); i != e; ++i) -        if (isa<UndefValue>(PN.getIncomingValue(i))) { -          std::cerr << "HAD TO DISABLE PHI ELIM IN IC!\n"; -          V = 0; -          break; -        } +      if (I->getParent() != &I->getParent()->getParent()->front()) +        for (unsigned i = 0, e = PN.getNumIncomingValues(); i != e; ++i) +          if (isa<UndefValue>(PN.getIncomingValue(i))) { +            V = 0; +            break; +          }      }      if (V) | 

