20 lines · plain
1; RUN: opt -passes=gvn < %s2 3define void @__memdep_requires_dominator_tree(ptr nocapture %bufUInt, ptr nocapture %pattern) nounwind {4entry:5 br label %for.body6 7for.exit: ; preds = %for.body8 ret void9 10for.body: ; preds = %for.body, %entry11 %i.01 = phi i32 [ 0, %entry ], [ %tmp8.7, %for.body ]12 %arrayidx = getelementptr i32, ptr %bufUInt, i32 %i.0113 %arrayidx5 = getelementptr i32, ptr %pattern, i32 %i.0114 %tmp6 = load i32, ptr %arrayidx5, align 415 store i32 %tmp6, ptr %arrayidx, align 416 %tmp8.7 = add i32 %i.01, 817 %cmp.7 = icmp ult i32 %tmp8.7, 102418 br i1 %cmp.7, label %for.body, label %for.exit19}20