1*9880d681SAndroid Build Coastguard Worker; RUN: opt < %s -argpromotion -simplifycfg -constmerge | llvm-dis 2*9880d681SAndroid Build Coastguard Workertarget datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128" 3*9880d681SAndroid Build Coastguard Workertarget triple = "i386-apple-darwin10.0" 4*9880d681SAndroid Build Coastguard Worker 5*9880d681SAndroid Build Coastguard Worker%struct.VEC2 = type { double, double, double } 6*9880d681SAndroid Build Coastguard Worker%struct.VERTEX = type { %struct.VEC2, %struct.VERTEX*, %struct.VERTEX* } 7*9880d681SAndroid Build Coastguard Worker%struct.edge_rec = type { %struct.VERTEX*, %struct.edge_rec*, i32, i8* } 8*9880d681SAndroid Build Coastguard Worker 9*9880d681SAndroid Build Coastguard Workerdeclare %struct.edge_rec* @alloc_edge() nounwind ssp 10*9880d681SAndroid Build Coastguard Worker 11*9880d681SAndroid Build Coastguard Workerdefine i64 @build_delaunay(%struct.VERTEX* %tree, %struct.VERTEX* %extra) nounwind ssp { 12*9880d681SAndroid Build Coastguard Workerentry: 13*9880d681SAndroid Build Coastguard Worker br i1 undef, label %bb11, label %bb12 14*9880d681SAndroid Build Coastguard Worker 15*9880d681SAndroid Build Coastguard Workerbb11: ; preds = %bb10 16*9880d681SAndroid Build Coastguard Worker %a = call %struct.edge_rec* @alloc_edge() nounwind ; <%struct.edge_rec*> [#uses=0] 17*9880d681SAndroid Build Coastguard Worker ret i64 123 18*9880d681SAndroid Build Coastguard Worker 19*9880d681SAndroid Build Coastguard Workerbb12: ; preds = %bb10 20*9880d681SAndroid Build Coastguard Worker %b = call %struct.edge_rec* @alloc_edge() nounwind ; <%struct.edge_rec*> [#uses=1] 21*9880d681SAndroid Build Coastguard Worker %c = ptrtoint %struct.edge_rec* %b to i64 22*9880d681SAndroid Build Coastguard Worker ret i64 %c 23*9880d681SAndroid Build Coastguard Worker} 24