[llvm-commits] [parallel] CVS: llvm/test/Regression/Analysis/ParallelInfo/20040331-NestedPbr.ll
Misha Brukman
brukman at cs.uiuc.edu
Thu Apr 1 21:07:02 PST 2004
Changes in directory llvm/test/Regression/Analysis/ParallelInfo:
20040331-NestedPbr.ll added (r1.1.2.1)
---
Log message:
New test case with nested parallel branches.
---
Diffs of the changes: (+39 -0)
Index: llvm/test/Regression/Analysis/ParallelInfo/20040331-NestedPbr.ll
diff -c /dev/null llvm/test/Regression/Analysis/ParallelInfo/20040331-NestedPbr.ll:1.1.2.1
*** /dev/null Thu Apr 1 21:06:40 2004
--- llvm/test/Regression/Analysis/ParallelInfo/20040331-NestedPbr.ll Thu Apr 1 21:06:30 2004
***************
*** 0 ****
--- 1,39 ----
+ declare void %llvm.join(sbyte* %x)
+
+ int %main(int %argc, sbyte** %argv) {
+ entry:
+ %A = alloca [25 x int]
+ br label %parallel
+
+ parallel:
+ %i = phi int [ 0, %entry ], [ %inc, %indvar ]
+ %x = pbr label %indvar, label %array
+
+ array:
+ %tmp.4 = cast int %i to long
+ %tmp.5 = getelementptr [25 x int]* %A, long 0, long %tmp.4
+ store int %i, int* %tmp.5
+ br label %para2
+
+ para2:
+ %y = pbr label %y1, label %y2
+
+ y1:
+ br label %joiny
+
+ y2:
+ br label %joiny
+
+ joiny:
+ call void %llvm.join(sbyte* %y)
+ br label %loopexit
+
+ indvar:
+ %inc = add int %i, 1
+ %tmp.1 = setle int %inc, 24
+ br bool %tmp.1, label %parallel, label %loopexit
+
+ loopexit:
+ call void %llvm.join(sbyte* %x)
+ ret int 0
+ }
More information about the llvm-commits
mailing list