[llvm-commits] [parallel] CVS: llvm/test/Regression/Transforms/Parallel/20040429-ImplicitMultiplePbr.c

Misha Brukman brukman at cs.uiuc.edu
Thu May 6 11:32:01 PDT 2004


Changes in directory llvm/test/Regression/Transforms/Parallel:

20040429-ImplicitMultiplePbr.c added (r1.1.2.1)

---
Log message:

Test case for multiple parallel regions, which end up sharing code (thanks to
tail duplication).


---
Diffs of the changes:  (+25 -0)

Index: llvm/test/Regression/Transforms/Parallel/20040429-ImplicitMultiplePbr.c
diff -c /dev/null llvm/test/Regression/Transforms/Parallel/20040429-ImplicitMultiplePbr.c:1.1.2.1
*** /dev/null	Thu May  6 11:32:46 2004
--- llvm/test/Regression/Transforms/Parallel/20040429-ImplicitMultiplePbr.c	Thu May  6 11:32:36 2004
***************
*** 0 ****
--- 1,25 ----
+ void* __llvm_pbr(void);
+ void __llvm_join(void*);
+ 
+ void bar(void);
+ void baz(void);
+ void quux(void);
+ void quux2(void);
+ 
+ void  foo() {
+   void* p = __llvm_pbr();
+   if (p)
+     bar();
+   else
+     baz();
+   __llvm_join(p);
+ 
+   void *q = __llvm_pbr();
+   if (q)
+     quux();
+   else
+     quuux();
+ 
+   __llvm_join(q);
+ 
+ }





More information about the llvm-commits mailing list