1
0
mirror of https://github.com/c64scene-ar/llvm-6502.git synced 2025-02-28 09:31:03 +00:00
llvm-6502/test/Transforms/Mem2Reg/2003-04-18-DeadBlockProblem.ll
2006-12-02 04:23:10 +00:00

18 lines
306 B
LLVM

; This testcases makes sure that mem2reg can handle unreachable blocks.
; RUN: llvm-upgrade < %s | llvm-as | 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
}