summaryrefslogtreecommitdiff
path: root/test/CodeGen/Generic/2006-10-27-CondFolding.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/Generic/2006-10-27-CondFolding.ll')
-rw-r--r--test/CodeGen/Generic/2006-10-27-CondFolding.ll21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/CodeGen/Generic/2006-10-27-CondFolding.ll b/test/CodeGen/Generic/2006-10-27-CondFolding.ll
new file mode 100644
index 000000000000..b3cfb9941bbb
--- /dev/null
+++ b/test/CodeGen/Generic/2006-10-27-CondFolding.ll
@@ -0,0 +1,21 @@
+; RUN: llvm-as < %s | llc
+
+define void @start_pass_huff(i32 %gather_statistics) {
+entry:
+ %tmp = icmp eq i32 %gather_statistics, 0 ; <i1> [#uses=1]
+ br i1 false, label %cond_next22, label %bb166
+
+cond_next22: ; preds = %entry
+ %bothcond = and i1 false, %tmp ; <i1> [#uses=1]
+ br i1 %bothcond, label %bb34, label %bb46
+
+bb34: ; preds = %cond_next22
+ ret void
+
+bb46: ; preds = %cond_next22
+ ret void
+
+bb166: ; preds = %entry
+ ret void
+}
+