[llvm-commits] CVS: llvm/test/Transforms/GVNPRE/select.ll
Owen Anderson
resistor at mac.com
Thu Jun 28 16:50:54 PDT 2007
Changes in directory llvm/test/Transforms/GVNPRE:
select.ll added (r1.1)
---
Log message:
Add a test for performing GVNPRE on select instructions.
---
Diffs of the changes: (+17 -0)
select.ll | 17 +++++++++++++++++
1 files changed, 17 insertions(+)
Index: llvm/test/Transforms/GVNPRE/select.ll
diff -c /dev/null llvm/test/Transforms/GVNPRE/select.ll:1.1
*** /dev/null Thu Jun 28 18:50:41 2007
--- llvm/test/Transforms/GVNPRE/select.ll Thu Jun 28 18:50:31 2007
***************
*** 0 ****
--- 1,17 ----
+ ; RUN: llvm-as < %s | opt -gvnpre | llvm-dis | grep b.gvnpre
+
+ define i32 @extract() {
+ entry: ; preds = %cond_false, %entry
+ br i1 true, label %cond_true, label %cond_false
+
+ cond_true:
+ br label %end
+
+ cond_false:
+ %a = select i1 true, i32 0, i32 1
+ br label %end
+
+ end:
+ %b = select i1 true, i32 0, i32 1
+ ret i32 %b
+ }
More information about the llvm-commits
mailing list