aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/pr3241.ll
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-12-20 16:34:57 +0000
committerDan Gohman <gohman@apple.com>2008-12-20 16:34:57 +0000
commitf89e6e65770edccd8cc3baf2314b89ba894ffa4f (patch)
treed23072ca959a4e97ed3a6612856e88cf568fb21c /test/CodeGen/X86/pr3241.ll
parentb8fd41985ffd0f87fc2bbf488ae472c188ee5853 (diff)
downloadexternal_llvm-f89e6e65770edccd8cc3baf2314b89ba894ffa4f.zip
external_llvm-f89e6e65770edccd8cc3baf2314b89ba894ffa4f.tar.gz
external_llvm-f89e6e65770edccd8cc3baf2314b89ba894ffa4f.tar.bz2
Use the correct Preds and Succs lists in setHeightDirty()
and setDepthDirty(), respectively. This fixes PR3241. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61276 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/pr3241.ll')
-rw-r--r--test/CodeGen/X86/pr3241.ll29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/CodeGen/X86/pr3241.ll b/test/CodeGen/X86/pr3241.ll
new file mode 100644
index 0000000..665a763
--- /dev/null
+++ b/test/CodeGen/X86/pr3241.ll
@@ -0,0 +1,29 @@
+; RUN: llvm-as < %s | llc -march=x86
+; PR3241
+
+@g_620 = external global i32
+
+define void @func_18(i32 %p_21) nounwind {
+entry:
+ %t0 = call i32 @func_31(i32 %p_21) nounwind
+ %t1 = call i32 @safe_add_macro_uint32_t_u_u() nounwind
+ %t2 = icmp sgt i32 %t1, 0
+ %t3 = zext i1 %t2 to i32
+ %t4 = load i32* @g_620, align 4
+ %t5 = icmp eq i32 %t3, %t4
+ %t6 = xor i32 %p_21, 1
+ %t7 = call i32 @func_55(i32 %t6) nounwind
+ br i1 %t5, label %return, label %bb
+
+bb:
+ unreachable
+
+return:
+ unreachable
+}
+
+declare i32 @func_31(i32)
+
+declare i32 @safe_add_macro_uint32_t_u_u()
+
+declare i32 @func_55(i32)