diff options
author | Chris Lattner <sabre@nondot.org> | 2003-02-27 22:34:31 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-02-27 22:34:31 +0000 |
commit | a5ca8e5c50298cfa8fb79cdee09adaea9d113bac (patch) | |
tree | c0cde28e17f92f85f6e9a788e15622b4c078d500 /test/Transforms | |
parent | 7e7ad49c23867a5de8e15adfd946fdfa4ba68902 (diff) | |
download | external_llvm-a5ca8e5c50298cfa8fb79cdee09adaea9d113bac.zip external_llvm-a5ca8e5c50298cfa8fb79cdee09adaea9d113bac.tar.gz external_llvm-a5ca8e5c50298cfa8fb79cdee09adaea9d113bac.tar.bz2 |
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5660 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r-- | test/Transforms/LICM/2003-02-27-PreheaderExitNodeUpdate.ll | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/Transforms/LICM/2003-02-27-PreheaderExitNodeUpdate.ll b/test/Transforms/LICM/2003-02-27-PreheaderExitNodeUpdate.ll new file mode 100644 index 0000000..85ec34e --- /dev/null +++ b/test/Transforms/LICM/2003-02-27-PreheaderExitNodeUpdate.ll @@ -0,0 +1,19 @@ +; This testcase fails because preheader insertion is not updating exit node +; information for loops. + +; RUN: as < %s | opt -licm + +int %main(int %argc, sbyte** %argv) { +bb0: ; No predecessors! + br bool false, label %bb7, label %bb5 + +bb5: ; preds = %bb5, %bb0 + br bool false, label %bb5, label %bb7 + +bb7: ; preds = %bb7, %bb5, %bb0 + br bool false, label %bb7, label %bb10 + +bb10: ; preds = %bb7 + ret int 0 +} + |