[llvm-commits] CVS: llvm/test/Transforms/GVNPRE/2007-06-12-PhiTranslate.ll
Owen Anderson
resistor at mac.com
Tue Jun 12 15:42:58 PDT 2007
Changes in directory llvm/test/Transforms/GVNPRE:
2007-06-12-PhiTranslate.ll added (r1.1)
---
Log message:
Add a test where phi translation was producing a null result.
---
Diffs of the changes: (+19 -0)
2007-06-12-PhiTranslate.ll | 19 +++++++++++++++++++
1 files changed, 19 insertions(+)
Index: llvm/test/Transforms/GVNPRE/2007-06-12-PhiTranslate.ll
diff -c /dev/null llvm/test/Transforms/GVNPRE/2007-06-12-PhiTranslate.ll:1.1
*** /dev/null Tue Jun 12 17:42:45 2007
--- llvm/test/Transforms/GVNPRE/2007-06-12-PhiTranslate.ll Tue Jun 12 17:42:35 2007
***************
*** 0 ****
--- 1,19 ----
+ ; RUN: llvm-as < %s | opt -gvnpre | llvm-dis
+
+ define void @strength_test5(i32* %data) {
+ entry:
+ br i1 false, label %cond_next16.preheader, label %cond_true
+
+ cond_true: ; preds = %entry
+ %tmp12 = icmp sgt i32 0, 0 ; <i1> [#uses=1]
+ br i1 %tmp12, label %return, label %cond_next16.preheader
+
+ cond_next16.preheader: ; preds = %cond_true, %entry
+ %i.01.1.ph = phi i32 [ 1, %entry ], [ 1, %cond_true ] ; <i32> [#uses=1]
+ %i.01.1 = add i32 0, %i.01.1.ph ; <i32> [#uses=0]
+ %indvar.next = add i32 0, 1 ; <i32> [#uses=0]
+ ret void
+
+ return: ; preds = %cond_true
+ ret void
+ }
More information about the llvm-commits
mailing list