| 1 |
; RUN: opt -passes='print<access-info>' < %s -disable-output 2>&1 | FileCheck %s |
| 2 |
|
| 3 |
define dso_local void @dotvariable_laa(ptr nocapture readonly nonnull %Base1, ptr nocapture readonly %Base2, ptr nocapture %Dest, ptr nocapture readonly %Preds) { |
| 4 |
entry: |
| 5 |
br label %for.body |
| 6 |
|
| 7 |
for.cond.cleanup: |
| 8 |
ret void |
| 9 |
|
| 10 |
for.body: |
| 11 |
%indvars.iv = phi i64 [ 0, %entry ], [ %indvars.iv.next, %for.body ] |
| 12 |
%arrayidx = getelementptr inbounds i32, ptr %Preds, i64 %indvars.iv |
| 13 |
%0 = load i32, ptr %arrayidx, align 4 |
| 14 |
%cmp1.not = icmp eq i32 %0, 0 |
| 15 |
%spec.select = select i1 %cmp1.not, ptr %Base2, ptr %Base1 |
| 16 |
%.sink.in = getelementptr inbounds double, ptr %spec.select, i64 %indvars.iv |
| 17 |
%.sink = load double, ptr %.sink.in, align 8 |
| 18 |
%1 = getelementptr inbounds double, ptr %Dest, i64 %indvars.iv |
| 19 |
store double %.sink, ptr %1, align 8 |
| 20 |
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1 |
| 21 |
%exitcond.not = icmp eq i64 %indvars.iv.next, 100 |
| 22 |
br i1 %exitcond.not, label %for.cond.cleanup, label %for.body |
| 23 |
} |