[llvm-commits] CVS: llvm/test/Regression/Transforms/LCSSA/basictest.ll dg.exp
Owen Anderson
resistor at mac.com
Fri May 26 14:59:33 PDT 2006
Changes in directory llvm/test/Regression/Transforms/LCSSA:
basictest.ll added (r1.1)
dg.exp added (r1.1)
---
Log message:
Trivial testcase that LCSSA can already handle.
---
Diffs of the changes: (+28 -0)
basictest.ll | 25 +++++++++++++++++++++++++
dg.exp | 3 +++
2 files changed, 28 insertions(+)
Index: llvm/test/Regression/Transforms/LCSSA/basictest.ll
diff -c /dev/null llvm/test/Regression/Transforms/LCSSA/basictest.ll:1.1
*** /dev/null Fri May 26 16:59:30 2006
--- llvm/test/Regression/Transforms/LCSSA/basictest.ll Fri May 26 16:59:20 2006
***************
*** 0 ****
--- 1,25 ----
+ ; RUN: llvm-as < %s | opt -lcssa | llvm-dis | grep "%lcssa = phi int"
+
+ void %lcssa(bool %S2) {
+ entry:
+ br label %loop.interior
+
+ loop.interior: ; preds = %entry
+ br bool %S2, label %if.true, label %if.false
+
+ if.true:
+ %X1 = add int 0, 0
+ br label %post.if
+
+ if.false:
+ %X2 = add int 0, 1
+ br label %post.if
+
+ post.if:
+ %X3 = phi int [%X1, %if.true], [%X2, %if.false]
+ br bool %S2, label %loop.exit, label %loop.interior
+
+ loop.exit:
+ %X4 = add int 3, %X3
+ ret void
+ }
\ No newline at end of file
Index: llvm/test/Regression/Transforms/LCSSA/dg.exp
diff -c /dev/null llvm/test/Regression/Transforms/LCSSA/dg.exp:1.1
*** /dev/null Fri May 26 16:59:33 2006
--- llvm/test/Regression/Transforms/LCSSA/dg.exp Fri May 26 16:59:20 2006
***************
*** 0 ****
--- 1,3 ----
+ load_lib llvm-dg.exp
+
+ llvm-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]] $objdir $srcdir $subdir $target_triplet $llvmgcc $llvmgxx $prcontext $llvmgcc_version
More information about the llvm-commits
mailing list