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
This commit is contained in:
Owen Anderson
2008-05-04 21:07:35 +00:00
parent 84cb71bbc5
commit 46bb007014
4 changed files with 30 additions and 29 deletions

View File

@@ -0,0 +1,3 @@
load_lib llvm.exp
RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]

View File

@@ -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
}