Index: include/llvm/Analysis/AliasSetTracker.h =================================================================== --- include/llvm/Analysis/AliasSetTracker.h +++ include/llvm/Analysis/AliasSetTracker.h @@ -85,15 +85,11 @@ if (AAInfo == DenseMapInfo::getEmptyKey()) // We don't have a AAInfo yet. Set it to NewAAInfo. AAInfo = NewAAInfo; - else { - AAMDNodes Intersection(AAInfo.intersect(NewAAInfo)); - if (!Intersection.TBAA || !Intersection.Scope || - !Intersection.NoAlias) { - // NewAAInfo conflicts with AAInfo. + else if (AAInfo.TBAA != NewAAInfo.TBAA || + AAInfo.Scope != NewAAInfo.Scope || + AAInfo.NoAlias != NewAAInfo.NoAlias) { AAInfo = DenseMapInfo::getTombstoneKey(); SizeChanged = true; - } - AAInfo = Intersection; } return SizeChanged; }