1; RUN: opt < %s -lowerswitch -disable-output 2 3define void @solve() { 4entry: 5 %targetBlock = call i16 @solve_code( ) ; <i16> [#uses=1] 6 br label %codeReplTail 7then.1: ; preds = %codeReplTail 8 ret void 9loopexit.0: ; preds = %codeReplTail 10 ret void 11codeReplTail: ; preds = %codeReplTail, %entry 12 switch i16 %targetBlock, label %codeReplTail [ 13 i16 0, label %loopexit.0 14 i16 1, label %then.1 15 ] 16} 17 18declare i16 @solve_code() 19 20