diff options
author | Tanya Lattner <tonic@nondot.org> | 2008-03-01 09:15:35 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2008-03-01 09:15:35 +0000 |
commit | ec9a35a6f9143cfa325e0413cc297c48f627973a (patch) | |
tree | c1b0621415acc20f94152c51174d53fae3dbc8cc /test/Transforms/InstCombine/2004-01-13-InstCombineInvokePHI.ll | |
parent | ab3b77834c9232e4c13acb29afe1920b97c5a20b (diff) | |
download | llvm-ec9a35a6f9143cfa325e0413cc297c48f627973a.tar.gz llvm-ec9a35a6f9143cfa325e0413cc297c48f627973a.tar.bz2 llvm-ec9a35a6f9143cfa325e0413cc297c48f627973a.tar.xz |
Remove llvm-upgrade and update test cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47793 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/2004-01-13-InstCombineInvokePHI.ll')
-rw-r--r-- | test/Transforms/InstCombine/2004-01-13-InstCombineInvokePHI.ll | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/test/Transforms/InstCombine/2004-01-13-InstCombineInvokePHI.ll b/test/Transforms/InstCombine/2004-01-13-InstCombineInvokePHI.ll index ff90c32daf..c6a6b6afb8 100644 --- a/test/Transforms/InstCombine/2004-01-13-InstCombineInvokePHI.ll +++ b/test/Transforms/InstCombine/2004-01-13-InstCombineInvokePHI.ll @@ -5,20 +5,24 @@ ; invoke instruction, we really cannot perform this transformation at all at ; least without splitting the critical edge. ; -; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output +; RUN: llvm-as < %s | opt -instcombine -disable-output -declare sbyte* %test() +declare i8* @test() -int %foo() { +define i32 @foo() { entry: - br bool true, label %cont, label %call -call: - %P = invoke int*()* cast (sbyte*()* %test to int*()*)() - to label %cont except label %N -cont: - %P2 = phi int* [%P, %call], [null, %entry] - %V = load int* %P2 - ret int %V -N: - ret int 0 + br i1 true, label %cont, label %call + +call: ; preds = %entry + %P = invoke i32* bitcast (i8* ()* @test to i32* ()*)( ) + to label %cont unwind label %N ; <i32*> [#uses=1] + +cont: ; preds = %call, %entry + %P2 = phi i32* [ %P, %call ], [ null, %entry ] ; <i32*> [#uses=1] + %V = load i32* %P2 ; <i32> [#uses=1] + ret i32 %V + +N: ; preds = %call + ret i32 0 } + |