[llvm-commits] CVS: llvm/test/Regression/Transforms/SimplifyCFG/switch_create.ll

Chris Lattner lattner at cs.uiuc.edu
Wed Feb 23 18:14:05 PST 2005



Changes in directory llvm/test/Regression/Transforms/SimplifyCFG:

switch_create.ll updated: 1.1 -> 1.2
---
Log message:

add another testcase to make sure it gets turned into a switch (answer: yes it does)


---
Diffs of the changes:  (+15 -0)

 switch_create.ll |   15 +++++++++++++++
 1 files changed, 15 insertions(+)


Index: llvm/test/Regression/Transforms/SimplifyCFG/switch_create.ll
diff -u llvm/test/Regression/Transforms/SimplifyCFG/switch_create.ll:1.1 llvm/test/Regression/Transforms/SimplifyCFG/switch_create.ll:1.2
--- llvm/test/Regression/Transforms/SimplifyCFG/switch_create.ll:1.1	Mon Feb 23 23:34:44 2004
+++ llvm/test/Regression/Transforms/SimplifyCFG/switch_create.ll	Wed Feb 23 20:13:50 2005
@@ -31,3 +31,18 @@
 }
 
 
+void %test3(int %V) {
+	%C1 = seteq int %V, 4
+	br bool %C1, label %T, label %N
+N:
+	%C2 = seteq int %V, 17
+	br bool %C2, label %T, label %F
+T:
+	call void %foo1()
+	ret void
+F:
+	call void %foo2()
+	ret void
+}
+
+






More information about the llvm-commits mailing list