diff options
author | Owen Anderson <resistor@mac.com> | 2008-05-04 21:07:35 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-05-04 21:07:35 +0000 |
commit | 46bb007014414c966586a983dbf24f38490e0f22 (patch) | |
tree | 4250b409ee3f01854c356038846cf5464235e759 /test | |
parent | 84cb71bbc530033905fe52e455a03dcf7a82e3ae (diff) | |
download | external_llvm-46bb007014414c966586a983dbf24f38490e0f22.zip external_llvm-46bb007014414c966586a983dbf24f38490e0f22.tar.gz external_llvm-46bb007014414c966586a983dbf24f38490e0f22.tar.bz2 |
Fix PR1098 by correcting the postdominators analysis.
Patch by Florian Brandner.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50628 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Analysis/PostDominators/dg.exp | 3 | ||||
-rw-r--r-- | test/Analysis/PostDominators/pr1098.ll | 14 |
2 files changed, 17 insertions, 0 deletions
diff --git a/test/Analysis/PostDominators/dg.exp b/test/Analysis/PostDominators/dg.exp new file mode 100644 index 0000000..879685c --- /dev/null +++ b/test/Analysis/PostDominators/dg.exp @@ -0,0 +1,3 @@ +load_lib llvm.exp + +RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]] diff --git a/test/Analysis/PostDominators/pr1098.ll b/test/Analysis/PostDominators/pr1098.ll new file mode 100644 index 0000000..b54a9fe --- /dev/null +++ b/test/Analysis/PostDominators/pr1098.ll @@ -0,0 +1,14 @@ +; RUN: llvm-as < %s | opt -postdomtree -analyze | grep entry +; PR932 + +define void @foo(i1 %x) { +entry: + br i1 %x, label %bb1, label %bb0 +bb0: ; preds = %entry, bb0 + br label %bb0 +bb1: ; preds = %entry + br label %bb2 +bb2: ; preds = %bb1 + ret void +} + |