diff options
Diffstat (limited to 'test/Transforms/CodeExtractor/2004-08-12-BlockExtractPHI.ll')
-rw-r--r-- | test/Transforms/CodeExtractor/2004-08-12-BlockExtractPHI.ll | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/Transforms/CodeExtractor/2004-08-12-BlockExtractPHI.ll b/test/Transforms/CodeExtractor/2004-08-12-BlockExtractPHI.ll new file mode 100644 index 0000000..c9c23d4 --- /dev/null +++ b/test/Transforms/CodeExtractor/2004-08-12-BlockExtractPHI.ll @@ -0,0 +1,27 @@ +; RUN: llvm-upgrade < %s | llvm-as | opt -extract-blocks -disable-output + +implementation + +void %test1() { +no_exit.0.i: + br bool false, label %yylex.entry, label %yylex.entry + +yylex.entry: + %tmp.1027 = phi int [ 0, %no_exit.0.i ], [ 0, %no_exit.0.i ] + ret void +} + +void %test2() { +no_exit.0.i: + switch uint 0, label %yylex.entry [ + uint 0, label %yylex.entry + uint 1, label %foo + ] + +yylex.entry: + %tmp.1027 = phi int [ 0, %no_exit.0.i ], [ 0, %no_exit.0.i ] + ret void +foo: + ret void +} + |