aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/DSAnalysis/recursion.ll
blob: c79183f3b0b0d72d0a310e4ae7f221ef90508a66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
; RUN: llvm-upgrade < %s | llvm-as | opt -analyze -tddatastructure

implementation   ; Functions:

declare void %__main()

void %A(int* %L) {
bb0:            ; No predecessors!
        call void %B( int* %L )
        call void %A( int* %L )
        ret void
}

void %B(int* %L) {
bb0:            ; No predecessors!
        call void %A( int* %L )
        ret void
}

void %main() {
bb0:            ; No predecessors!
        call void %__main( )
        call void %A( int* null )
        ret void
}