diff options
| author | Chris Lattner <sabre@nondot.org> | 2008-11-24 19:40:34 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2008-11-24 19:40:34 +0000 | 
| commit | 992a54100210f777774d1643d99104106fc2a094 (patch) | |
| tree | cd327ca662e2a0b67181f083d0a91256ba6e05e4 /llvm/lib/Transforms | |
| parent | f7cb84d77131fc18ba190bcc4920a344ecf78fdd (diff) | |
| download | bcm5719-llvm-992a54100210f777774d1643d99104106fc2a094.tar.gz bcm5719-llvm-992a54100210f777774d1643d99104106fc2a094.zip | |
revert an accidental commit, this fixes the regression on test/CodeGen/X86/isel-sink.ll
llvm-svn: 59976
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp | 5 | 
1 files changed, 1 insertions, 4 deletions
| diff --git a/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp b/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp index b8664b0d4a1..5edaf2ee44a 100644 --- a/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp +++ b/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp @@ -208,7 +208,7 @@ void CodeGenPrepare::EliminateMostlyEmptyBlock(BasicBlock *BB) {      while (PHINode *PN = dyn_cast<PHINode>(DestBB->begin())) {        Value *NewVal = PN->getIncomingValue(0);        // Replace self referencing PHI with undef, it must be dead. -      if (NewVal == PN) NewVal = UndefValue::get(PN->getType()); +      //if (NewVal == PN) NewVal = UndefValue::get(PN->getType());        PN->replaceAllUsesWith(NewVal);        PN->eraseFromParent();      } @@ -572,9 +572,6 @@ static bool FindMaximalLegalAddressingMode(Value *Addr, const Type *AccessTy,    if (Instruction *I = dyn_cast_or_null<Instruction>(AddrInst))      AddrModeInsts.push_back(I); -  if (AddrInst && !AddrInst->hasOneUse()) -    ; -  else    switch (Opcode) {    case Instruction::PtrToInt:      // PtrToInt is always a noop, as we know that the int type is pointer sized. | 

