• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -mtriple=arm-eabi %s -o - | FileCheck %s
2
3	%struct.shape_edge_t = type { %struct.shape_edge_t*, %struct.shape_edge_t*, i32, i32, i32, i32 }
4	%struct.shape_path_t = type { %struct.shape_edge_t*, %struct.shape_edge_t*, i32, i32, i32, i32, i32, i32 }
5	%struct.shape_pool_t = type { i8* (%struct.shape_pool_t*, i8*, i32)*, i8* (%struct.shape_pool_t*, i32)*, void (%struct.shape_pool_t*, i8*)* }
6
7define %struct.shape_path_t* @shape_path_alloc(%struct.shape_pool_t* %pool, i32* %shape) {
8entry:
9	br i1 false, label %cond_false, label %bb45
10
11bb45:		; preds = %entry
12	ret %struct.shape_path_t* null
13
14cond_false:		; preds = %entry
15	br i1 false, label %bb140, label %bb174
16
17bb140:		; preds = %bb140, %cond_false
18	%indvar = phi i32 [ 0, %cond_false ], [ %indvar.next, %bb140 ]		; <i32> [#uses=2]
19	%edge.230.0.rec = shl i32 %indvar, 1		; <i32> [#uses=3]
20	%edge.230.0 = getelementptr %struct.shape_edge_t* null, i32 %edge.230.0.rec		; <%struct.shape_edge_t*> [#uses=1]
21	%edge.230.0.sum6970 = or i32 %edge.230.0.rec, 1		; <i32> [#uses=2]
22	%tmp154 = getelementptr %struct.shape_edge_t* null, i32 %edge.230.0.sum6970		; <%struct.shape_edge_t*> [#uses=1]
23	%tmp11.i5 = getelementptr %struct.shape_edge_t* null, i32 %edge.230.0.sum6970, i32 0		; <%struct.shape_edge_t**> [#uses=1]
24	store %struct.shape_edge_t* %edge.230.0, %struct.shape_edge_t** %tmp11.i5
25	store %struct.shape_edge_t* %tmp154, %struct.shape_edge_t** null
26	%tmp16254.0.rec = add i32 %edge.230.0.rec, 2		; <i32> [#uses=1]
27	%xp.350.sum = add i32 0, %tmp16254.0.rec		; <i32> [#uses=1]
28	%tmp168 = icmp slt i32 %xp.350.sum, 0		; <i1> [#uses=1]
29	%indvar.next = add i32 %indvar, 1		; <i32> [#uses=1]
30	br i1 %tmp168, label %bb140, label %bb174
31
32bb174:		; preds = %bb140, %cond_false
33	ret %struct.shape_path_t* null
34}
35
36; CHECK-NOT: str{{.*}}!
37
38