summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-11-30 00:31:16 +0000
committerChris Lattner <sabre@nondot.org>2004-11-30 00:31:16 +0000
commit8cca1a7cbc1b1d0d1975f6cc607d2bcf6e327530 (patch)
tree56d81137a82846b59c778a873865d812f6b836f0 /test
parent37dc938bbe556a9414d063196d367c2f75d07d95 (diff)
downloadllvm-8cca1a7cbc1b1d0d1975f6cc607d2bcf6e327530.tar.gz
llvm-8cca1a7cbc1b1d0d1975f6cc607d2bcf6e327530.tar.bz2
llvm-8cca1a7cbc1b1d0d1975f6cc607d2bcf6e327530.tar.xz
New testcase for simplifycfg
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18367 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/SimplifyCFG/HoistCode.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Transforms/SimplifyCFG/HoistCode.ll b/test/Transforms/SimplifyCFG/HoistCode.ll
new file mode 100644
index 0000000000..db397a7e64
--- /dev/null
+++ b/test/Transforms/SimplifyCFG/HoistCode.ll
@@ -0,0 +1,11 @@
+; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | not grep br
+
+void %foo(bool %C, int* %P) {
+ br bool %C, label %T, label %F
+T:
+ store int 7, int* %P
+ ret void
+F:
+ store int 7, int* %P
+ ret void
+}