;; This test is really dependent on propagating a lot of memory info around, but in the end, not ;; screwing up a single add. ; RUN: opt < %s -basic-aa -newgvn -S | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" %struct.Letter = type { i32, i32, i32, i32 } @alPhrase = external local_unnamed_addr global [26 x %struct.Letter], align 16 @aqMainMask = external local_unnamed_addr global [2 x i64], align 16 @aqMainSign = external local_unnamed_addr global [2 x i64], align 16 @cchPhraseLength = external local_unnamed_addr global i32, align 4 @auGlobalFrequency = external local_unnamed_addr global [26 x i32], align 16 @.str.7 = external hidden unnamed_addr constant [28 x i8], align 1 ; Function Attrs: nounwind uwtable declare void @Fatal(i8*, i32) local_unnamed_addr #0 ; Function Attrs: nounwind readnone declare i16** @__ctype_b_loc() local_unnamed_addr #1 ; Function Attrs: nounwind uwtable define void @BuildMask(i8* nocapture readonly) local_unnamed_addr #0 { tail call void @llvm.memset.p0i8.i64(i8* align 16 bitcast ([26 x %struct.Letter]* @alPhrase to i8*), i8 0, i64 416, i1 false) tail call void @llvm.memset.p0i8.i64(i8* align 16 bitcast ([2 x i64]* @aqMainMask to i8*), i8 0, i64 16, i1 false) tail call void @llvm.memset.p0i8.i64(i8* align 16 bitcast ([2 x i64]* @aqMainSign to i8*), i8 0, i64 16, i1 false) br label %.sink.split .sink.split: ; preds = %14, %1 %.0 = phi i8* [ %0, %1 ], [ %.lcssa67, %14 ] %.sink = phi i32 [ 0, %1 ], [ %23, %14 ] store i32 %.sink, i32* @cchPhraseLength, align 4, !tbaa !1 br label %2 ;