Devang Patel | bd4e13d | 2008-03-04 21:15:15 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-as < %s | opt -inline -sretpromotion -disable-output |
| 2 | %struct.Benchmark = type { i32 (...)** } |
| 3 | %struct.Complex = type { double, double } |
| 4 | %struct.ComplexBenchmark = type { %struct.Benchmark } |
| 5 | |
| 6 | define void @_Zml7ComplexS_(%struct.Complex* sret %agg.result, double %a.0, double %a.1, double %b.0, double %b.1) nounwind { |
| 7 | entry: |
| 8 | ret void |
| 9 | } |
| 10 | |
| 11 | define void @_ZNK16ComplexBenchmark9oop_styleEv(%struct.ComplexBenchmark* %this) nounwind { |
| 12 | entry: |
| 13 | %tmp = alloca %struct.Complex ; <%struct.Complex*> [#uses=2] |
| 14 | br label %bb31 |
| 15 | |
| 16 | bb: ; preds = %bb31 |
| 17 | call void @_Zml7ComplexS_( %struct.Complex* sret %tmp, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00 ) nounwind |
| 18 | %tmp21 = getelementptr %struct.Complex* %tmp, i32 0, i32 1 ; <double*> [#uses=0] |
| 19 | br label %bb31 |
| 20 | |
| 21 | bb31: ; preds = %bb, %entry |
| 22 | br i1 false, label %bb, label %return |
| 23 | |
| 24 | return: ; preds = %bb31 |
| 25 | ret void |
| 26 | } |