Index: llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp =================================================================== --- llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp +++ llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp @@ -1590,11 +1590,6 @@ (isa(O2) && isIdentifiedFunctionLocal(O1))) return NoAlias; - // Most objects can't alias null. - if ((isa(O2) && isKnownNonNull(O1)) || - (isa(O1) && isKnownNonNull(O2))) - return NoAlias; - // If one pointer is the result of a call/invoke or load and the other is a // non-escaping local object within the same function, then we know the // object couldn't escape to a point where the call could return it.