[llvm-commits] CVS: llvm/test/Regression/Transforms/SimplifyCFG/2003-08-17-FoldSwitch.ll
Chris Lattner
lattner at cs.uiuc.edu
Sat Aug 23 18:26:51 PDT 2003
Changes in directory llvm/test/Regression/Transforms/SimplifyCFG:
2003-08-17-FoldSwitch.ll updated: 1.1 -> 1.2
---
Log message:
Add a new switch folding testcase
---
Diffs of the changes:
Index: llvm/test/Regression/Transforms/SimplifyCFG/2003-08-17-FoldSwitch.ll
diff -u llvm/test/Regression/Transforms/SimplifyCFG/2003-08-17-FoldSwitch.ll:1.1 llvm/test/Regression/Transforms/SimplifyCFG/2003-08-17-FoldSwitch.ll:1.2
--- llvm/test/Regression/Transforms/SimplifyCFG/2003-08-17-FoldSwitch.ll:1.1 Sun Aug 17 15:19:31 2003
+++ llvm/test/Regression/Transforms/SimplifyCFG/2003-08-17-FoldSwitch.ll Sat Aug 23 18:17:59 2003
@@ -47,3 +47,14 @@
L1: ret int 0
L2: ret int 1
}
+
+int %test5(uint %C) {
+ switch uint %C, label %L1 [ ; Can fold into a cond branch!
+ uint 0, label %L2
+ uint 123, label %L1
+ ]
+L1: ret int 0
+L2: ret int 1
+}
+
+
More information about the llvm-commits
mailing list