diff options
| author | Chris Lattner <sabre@nondot.org> | 2003-08-23 23:17:59 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2003-08-23 23:17:59 +0000 |
| commit | b42ef2dbdb9dc40a4027d9be3cb2e2f62c9978ce (patch) | |
| tree | 71a8e8345fd1b3eb5e868ee8f75ffa03cef000ff /llvm/test/Regression/Transforms/SimplifyCFG | |
| parent | a541e80b3c6f524635353e279aabd58fe6396dc2 (diff) | |
| download | bcm5719-llvm-b42ef2dbdb9dc40a4027d9be3cb2e2f62c9978ce.tar.gz bcm5719-llvm-b42ef2dbdb9dc40a4027d9be3cb2e2f62c9978ce.zip | |
Add a new switch folding testcase
llvm-svn: 8092
Diffstat (limited to 'llvm/test/Regression/Transforms/SimplifyCFG')
| -rw-r--r-- | llvm/test/Regression/Transforms/SimplifyCFG/2003-08-17-FoldSwitch.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/Regression/Transforms/SimplifyCFG/2003-08-17-FoldSwitch.ll b/llvm/test/Regression/Transforms/SimplifyCFG/2003-08-17-FoldSwitch.ll index 79b55a4c611..71269ecfbdc 100644 --- a/llvm/test/Regression/Transforms/SimplifyCFG/2003-08-17-FoldSwitch.ll +++ b/llvm/test/Regression/Transforms/SimplifyCFG/2003-08-17-FoldSwitch.ll @@ -47,3 +47,14 @@ int %test4(uint %C) { ; Test folding switch -> branch 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 +} + + |

