diff options
author | Tanya Lattner <tonic@nondot.org> | 2008-03-18 03:45:45 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2008-03-18 03:45:45 +0000 |
commit | baa370b37aaad6c32d04319d4bcee4cf170f4efc (patch) | |
tree | 7c9ab0be27ad61d5db4d04e8a7253d2c683a13cc /llvm/test/Transforms/SimplifyCFG/hoist-common-code.ll | |
parent | c24a1e322335fa45d277722e589a2df24af43b77 (diff) | |
download | bcm5719-llvm-baa370b37aaad6c32d04319d4bcee4cf170f4efc.tar.gz bcm5719-llvm-baa370b37aaad6c32d04319d4bcee4cf170f4efc.zip |
Upgrade tests to not use llvm-upgrade.
llvm-svn: 48483
Diffstat (limited to 'llvm/test/Transforms/SimplifyCFG/hoist-common-code.ll')
-rw-r--r-- | llvm/test/Transforms/SimplifyCFG/hoist-common-code.ll | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/llvm/test/Transforms/SimplifyCFG/hoist-common-code.ll b/llvm/test/Transforms/SimplifyCFG/hoist-common-code.ll index 482c5aa0cc7..7512da263bd 100644 --- a/llvm/test/Transforms/SimplifyCFG/hoist-common-code.ll +++ b/llvm/test/Transforms/SimplifyCFG/hoist-common-code.ll @@ -1,17 +1,18 @@ -; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg | llvm-dis | not grep br -declare void %bar(int) +; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | not grep br -void %test(bool %P, int* %Q) { - br bool %P, label %T, label %F -T: - store int 1, int* %Q - %A = load int* %Q - call void %bar(int %A) - ret void -F: - store int 1, int* %Q - %B = load int* %Q - call void %bar(int %B) - ret void +declare void @bar(i32) + +define void @test(i1 %P, i32* %Q) { + br i1 %P, label %T, label %F +T: ; preds = %0 + store i32 1, i32* %Q + %A = load i32* %Q ; <i32> [#uses=1] + call void @bar( i32 %A ) + ret void +F: ; preds = %0 + store i32 1, i32* %Q + %B = load i32* %Q ; <i32> [#uses=1] + call void @bar( i32 %B ) + ret void } |