mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
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:
3
test/Analysis/PostDominators/dg.exp
Normal file
3
test/Analysis/PostDominators/dg.exp
Normal file
@@ -0,0 +1,3 @@
|
||||
load_lib llvm.exp
|
||||
|
||||
RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
|
14
test/Analysis/PostDominators/pr1098.ll
Normal file
14
test/Analysis/PostDominators/pr1098.ll
Normal 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
|
||||
}
|
||||
|
Reference in New Issue
Block a user