diff options
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Analysis/InstructionSimplify.cpp | 12 | 
1 files changed, 0 insertions, 12 deletions
diff --git a/llvm/lib/Analysis/InstructionSimplify.cpp b/llvm/lib/Analysis/InstructionSimplify.cpp index d5e38e5c112..f8e76ca2207 100644 --- a/llvm/lib/Analysis/InstructionSimplify.cpp +++ b/llvm/lib/Analysis/InstructionSimplify.cpp @@ -1828,18 +1828,6 @@ static Value *SimplifyICmpInst(unsigned Predicate, Value *LHS, Value *RHS,        else if (Pred == CmpInst::ICMP_NE)          return ConstantInt::get(ITy, true);      } -  } else if (Argument *LHSArg = dyn_cast<Argument>(LHSPtr)) { -    RHSPtr = RHSPtr->stripInBoundsOffsets(); -    // An alloca can't be equal to an argument unless they come from separate -    // functions via inlining. -    if (AllocaInst *RHSInst = dyn_cast<AllocaInst>(RHSPtr)) { -      if (LHSArg->getParent() == RHSInst->getParent()->getParent()) { -        if (Pred == CmpInst::ICMP_EQ) -          return ConstantInt::get(ITy, false); -        else if (Pred == CmpInst::ICMP_NE) -          return ConstantInt::get(ITy, true); -      } -    }    }    // If we are comparing with zero then try hard since this is a common case.  | 

