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 | 2231d5892b13775e8cd4420318d2c6f82817e44a (patch) | |
tree | 0735b76acdfdb2386f8a5b363f179d73c56d4e1d | |
parent | f959c33a454a437f3db1573cca8ec0f6fa969c06 (diff) |
Add a new switch folding testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8092 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Transforms/SimplifyCFG/2003-08-17-FoldSwitch.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Transforms/SimplifyCFG/2003-08-17-FoldSwitch.ll b/test/Transforms/SimplifyCFG/2003-08-17-FoldSwitch.ll index 79b55a4c61..71269ecfbd 100644 --- a/test/Transforms/SimplifyCFG/2003-08-17-FoldSwitch.ll +++ b/test/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 +} + + |