diff options
Diffstat (limited to 'llvm/test/Transforms/GCSE/2002-05-21-NoSharedDominator.ll')
-rw-r--r-- | llvm/test/Transforms/GCSE/2002-05-21-NoSharedDominator.ll | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/llvm/test/Transforms/GCSE/2002-05-21-NoSharedDominator.ll b/llvm/test/Transforms/GCSE/2002-05-21-NoSharedDominator.ll index 2c78695e41e..cf288b8171f 100644 --- a/llvm/test/Transforms/GCSE/2002-05-21-NoSharedDominator.ll +++ b/llvm/test/Transforms/GCSE/2002-05-21-NoSharedDominator.ll @@ -1,13 +1,14 @@ ; This testcase shows a bug where an common subexpression exists, but there ; is no shared dominator block that the expression can be hoisted out to. ; -; RUN: llvm-upgrade < %s | llvm-as | opt -gcse | llvm-dis +; RUN: llvm-as < %s | opt -gcse | llvm-dis -int "test"(int %X, int %Y) { - %Z = add int %X, %Y - ret int %Z +define i32 @test(i32 %X, i32 %Y) { + %Z = add i32 %X, %Y ; <i32> [#uses=1] + ret i32 %Z -Unreachable: - %Q = add int %X, %Y - ret int %Q +Unreachable: ; No predecessors! + %Q = add i32 %X, %Y ; <i32> [#uses=1] + ret i32 %Q } + |