summaryrefslogtreecommitdiffstats
path: root/test/Transforms/TailDup/2009-07-31-phicrash.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/TailDup/2009-07-31-phicrash.ll')
-rw-r--r--test/Transforms/TailDup/2009-07-31-phicrash.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Transforms/TailDup/2009-07-31-phicrash.ll b/test/Transforms/TailDup/2009-07-31-phicrash.ll
new file mode 100644
index 0000000..ad1a040
--- /dev/null
+++ b/test/Transforms/TailDup/2009-07-31-phicrash.ll
@@ -0,0 +1,14 @@
+; RUN: opt < %s -tailduplicate -disable-output
+; PR4662
+
+define void @a() {
+BB:
+ br label %BB6
+
+BB6:
+ %tmp9 = phi i64 [ 0, %BB ], [ 5, %BB34 ]
+ br label %BB34
+
+BB34:
+ br label %BB6
+}