forked from OSchip/llvm-project
parent
424132aa57
commit
71156c10b8
|
@ -0,0 +1,17 @@
|
|||
; This testcases makes sure that mem2reg can handle unreachable blocks.
|
||||
; RUN: as < %s | opt -mem2reg
|
||||
|
||||
int %test() {
|
||||
%X = alloca int
|
||||
|
||||
store int 6, int* %X
|
||||
br label %Loop
|
||||
Loop:
|
||||
store int 5, int* %X
|
||||
br label %EndOfLoop
|
||||
Unreachable:
|
||||
br label %EndOfLoop
|
||||
|
||||
EndOfLoop:
|
||||
br label %Loop
|
||||
}
|
Loading…
Reference in New Issue