[llvm-commits] CVS: llvm/test/Transforms/GVNPRE/2007-06-18-EraseNumbering.ll
Owen Anderson
resistor at mac.com
Mon Jun 18 22:41:44 PDT 2007
Changes in directory llvm/test/Transforms/GVNPRE:
2007-06-18-EraseNumbering.ll added (r1.1)
---
Log message:
Add a new testcase for memory corruption issues.
---
Diffs of the changes: (+26 -0)
2007-06-18-EraseNumbering.ll | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+)
Index: llvm/test/Transforms/GVNPRE/2007-06-18-EraseNumbering.ll
diff -c /dev/null llvm/test/Transforms/GVNPRE/2007-06-18-EraseNumbering.ll:1.1
*** /dev/null Tue Jun 19 00:41:32 2007
--- llvm/test/Transforms/GVNPRE/2007-06-18-EraseNumbering.ll Tue Jun 19 00:41:22 2007
***************
*** 0 ****
--- 1,26 ----
+ ; RUN: llvm-as < %s | opt -gvnpre | llvm-dis
+
+ define i32 @TreeCCStreamFlush(i8* %stream) {
+ entry:
+ br i1 false, label %bb55.preheader, label %cond_true
+
+ cond_true: ; preds = %entry
+ ret i32 0
+
+ bb55.preheader: ; preds = %entry
+ %tmp57 = icmp eq i8* null, null ; <i1> [#uses=0]
+ br i1 false, label %cond_next106, label %bb124
+
+ cond_next106: ; preds = %bb55.preheader
+ %tmp109 = load i8** null
+ br i1 false, label %bb124, label %bb116
+
+ bb116: ; preds = %cond_next106
+ ret i32 0
+
+ bb124: ; preds = %cond_next106, %bb55.preheader
+ %buffer.4 = phi i8* [ null, %bb55.preheader ], [ %tmp109, %cond_next106 ]
+ %tmp131 = icmp eq i8* %buffer.4, null
+ %bothcond = or i1 %tmp131, false
+ ret i32 0
+ }
More information about the llvm-commits
mailing list