diff options
| author | Chris Lattner <sabre@nondot.org> | 2008-11-28 00:58:15 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2008-11-28 00:58:15 +0000 | 
| commit | d4b5ba615ecd455292bdd3947198039c54d3965a (patch) | |
| tree | e5c7799e0baae3e1168981dcafa26946cfdb2bf3 /llvm/lib/Transforms/Utils | |
| parent | 1adb6759ef245fa8aeea48821dfb70a9a9097329 (diff) | |
| download | bcm5719-llvm-d4b5ba615ecd455292bdd3947198039c54d3965a.tar.gz bcm5719-llvm-d4b5ba615ecd455292bdd3947198039c54d3965a.zip | |
remove some weirdness that came from the LSR code that has
nothing to do with dead instruction elimination.  No tests in
dejagnu depend on this, so I don't know what it was needed for.
llvm-svn: 60202
Diffstat (limited to 'llvm/lib/Transforms/Utils')
| -rw-r--r-- | llvm/lib/Transforms/Utils/Local.cpp | 9 | 
1 files changed, 1 insertions, 8 deletions
| diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp index cab7f03ab0f..17ae9719011 100644 --- a/llvm/lib/Transforms/Utils/Local.cpp +++ b/llvm/lib/Transforms/Utils/Local.cpp @@ -190,14 +190,7 @@ void llvm::RecursivelyDeleteTriviallyDeadInstructions(Value *V,    while (!Insts.empty()) {      I = *Insts.begin();      Insts.erase(I); -     -    // If this is a PHI node, we may be able to make it dead if we know all the -    // input values are the same. -    if (PHINode *PN = dyn_cast<PHINode>(I)) { -      if (Value *PNV = PN->hasConstantValue()) -        PN->replaceAllUsesWith(PNV); -    } -     +      // Okay, if the instruction is dead, delete it.      if (!isInstructionTriviallyDead(I))        continue; | 

