summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/ifcvt9.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-06-15 21:24:34 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-06-15 21:24:34 +0000
commit2077e18caf1425f83ce549913a1cffa0a4de192e (patch)
treee0361a1e7c8e99a8880a30324ed25436c34d8182 /test/CodeGen/ARM/ifcvt9.ll
parent675860758ec8926f9803840615366931aca7f8d8 (diff)
ifcvt should ignore cfg where true and false successors are the same.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73423 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/ifcvt9.ll')
-rw-r--r--test/CodeGen/ARM/ifcvt9.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/ifcvt9.ll b/test/CodeGen/ARM/ifcvt9.ll
new file mode 100644
index 00000000000..bbd2f2ed621
--- /dev/null
+++ b/test/CodeGen/ARM/ifcvt9.ll
@@ -0,0 +1,12 @@
+; RUN: llvm-as < %s | llc -march=arm
+
+define fastcc void @t() nounwind {
+entry:
+ br i1 undef, label %bb.i.i3, label %growMapping.exit
+
+bb.i.i3: ; preds = %entry
+ unreachable
+
+growMapping.exit: ; preds = %entry
+ unreachable
+}