24 lines · plain
1; RUN: opt -passes='print<access-info>' < %s -disable-output 2>&1 | FileCheck %s2 3define dso_local void @dotvariable_laa(ptr nocapture readonly nonnull %Base1, ptr nocapture readonly %Base2, ptr nocapture %Dest, ptr nocapture readonly %Preds) {4entry:5 br label %for.body6 7for.cond.cleanup:8 ret void9 10for.body:11 %indvars.iv = phi i64 [ 0, %entry ], [ %indvars.iv.next, %for.body ]12 %arrayidx = getelementptr inbounds i32, ptr %Preds, i64 %indvars.iv13 %0 = load i32, ptr %arrayidx, align 414 %cmp1.not = icmp eq i32 %0, 015 %spec.select = select i1 %cmp1.not, ptr %Base2, ptr %Base116 %.sink.in = getelementptr inbounds double, ptr %spec.select, i64 %indvars.iv17 %.sink = load double, ptr %.sink.in, align 818 %1 = getelementptr inbounds double, ptr %Dest, i64 %indvars.iv19 store double %.sink, ptr %1, align 820 %indvars.iv.next = add nuw nsw i64 %indvars.iv, 121 %exitcond.not = icmp eq i64 %indvars.iv.next, 10022 br i1 %exitcond.not, label %for.cond.cleanup, label %for.body23}24