about summary refs log tree commit diff homepage
path: root/test/Concrete/OverlappingPhiNodes.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Concrete/OverlappingPhiNodes.ll')
-rw-r--r--test/Concrete/OverlappingPhiNodes.ll15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Concrete/OverlappingPhiNodes.ll b/test/Concrete/OverlappingPhiNodes.ll
new file mode 100644
index 00000000..d3dc76ab
--- /dev/null
+++ b/test/Concrete/OverlappingPhiNodes.ll
@@ -0,0 +1,15 @@
+declare void @print_i32(i32)
+
+define i32 @main() {
+entry:
+	br label %test
+test:
+	%a = phi i32 [10, %entry], [%b, %test]
+	%b = phi i32 [20, %entry], [%a, %test]
+	%c = phi i32 [0, %entry], [1, %test]
+	%d = icmp eq i32 %c, 1
+	br i1 %d, label %exit, label %test
+exit:
+	call void @print_i32(i32 %b)
+	ret i32 0
+}