forked from OSchip/llvm-project
parent
51f2be8bff
commit
7b99bada0b
|
@ -1636,7 +1636,7 @@ static Value *SimplifyICmpInst(unsigned Predicate, Value *LHS, Value *RHS,
|
|||
if (llvm::isKnownNonNull(LHSPtr) && isa<ConstantPointerNull>(RHSPtr))
|
||||
return ConstantInt::get(ITy, CmpInst::isFalseWhenEqual(Pred));
|
||||
|
||||
// A local instruction (alloca or noalias call) can't alias any incoming
|
||||
// A local instruction (alloca or noalias call) can't equal any incoming
|
||||
// argument.
|
||||
if ((isa<Instruction>(LHSPtr) && isa<Argument>(RHSPtr)) ||
|
||||
(isa<Instruction>(RHSPtr) && isa<Argument>(LHSPtr)))
|
||||
|
|
Loading…
Reference in New Issue