Use the llvm-upgrade program to upgrade llvm assembly.
[oota-llvm.git] / test / Transforms / LCSSA / 2006-06-03-IncorrectIDFPhis.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | opt -lcssa | llvm-dis | grep "%SJE.0.0.lcssa = phi .struct.SetJmpMapEntry" &&
2 ; RUN: llvm-upgrade < %s | llvm-as | opt -lcssa | llvm-dis | grep "%SJE.0.0.lcssa1 = phi .struct.SetJmpMapEntry"
3
4 %struct.SetJmpMapEntry = type { sbyte*, uint, %struct.SetJmpMapEntry* }
5
6 implementation   ; Functions:
7
8 void %__llvm_sjljeh_try_catching_longjmp_exception() {
9 entry:
10         br bool false, label %UnifiedReturnBlock, label %no_exit
11
12 no_exit:                ; preds = %endif, %entry
13         %SJE.0.0 = phi %struct.SetJmpMapEntry* [ %tmp.24, %endif ], [ null, %entry ]            ; <%struct.SetJmpMapEntry*> [#uses=1]
14         br bool false, label %then, label %endif
15
16 then:           ; preds = %no_exit
17         %tmp.20 = getelementptr %struct.SetJmpMapEntry* %SJE.0.0, int 0, uint 1         ; <uint*> [#uses=0]
18         ret void
19
20 endif:          ; preds = %no_exit
21         %tmp.24 = load %struct.SetJmpMapEntry** null            ; <%struct.SetJmpMapEntry*> [#uses=1]
22         br bool false, label %UnifiedReturnBlock, label %no_exit
23
24 UnifiedReturnBlock:             ; preds = %endif, %entry
25         ret void
26 }