[llvm-commits] CVS: llvm/test/Regression/Transforms/ADCE/2003-06-11-InvalidCFG.ll
Chris Lattner
lattner at cs.uiuc.edu
Mon Jun 16 07:06:05 PDT 2003
Changes in directory llvm/test/Regression/Transforms/ADCE:
2003-06-11-InvalidCFG.ll added (r1.1)
---
Log message:
New testcases for bugs and the new DAE pass
---
Diffs of the changes:
Index: llvm/test/Regression/Transforms/ADCE/2003-06-11-InvalidCFG.ll
diff -c /dev/null llvm/test/Regression/Transforms/ADCE/2003-06-11-InvalidCFG.ll:1.1
*** /dev/null Mon Jun 16 07:05:48 2003
--- llvm/test/Regression/Transforms/ADCE/2003-06-11-InvalidCFG.ll Mon Jun 16 07:05:38 2003
***************
*** 0 ****
--- 1,28 ----
+ ; RUN: as < %s | opt -adce -disable-output
+ %G = external global int*
+
+ implementation ; Functions:
+
+ declare void %Fn(int*)
+
+ int %main(int %argc.1, sbyte** %argv.1) {
+ entry: ; No predecessors!
+ br label %endif.42
+
+ endif.42: ; preds = %entry, %shortcirc_done.12, %then.66, %endif.42
+ br bool false, label %endif.65, label %endif.42
+
+ then.66: ; preds = %shortcirc_done.12
+ call void %Fn( int* %tmp.2846)
+ br label %endif.42
+
+ endif.65: ; preds = %endif.42
+ %tmp.2846 = load int** %G
+ br bool false, label %shortcirc_next.12, label %shortcirc_done.12
+
+ shortcirc_next.12: ; preds = %endif.65
+ br label %shortcirc_done.12
+
+ shortcirc_done.12: ; preds = %endif.65, %shortcirc_next.12
+ br bool false, label %then.66, label %endif.42
+ }
More information about the llvm-commits
mailing list