2009-06-01-RecursivePHI.ll 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. ; RUN: opt < %s -globalopt
  2. target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128"
  3. %struct.s_annealing_sched = type { i32, float, float, float, float }
  4. %struct.s_bb = type { i32, i32, i32, i32 }
  5. %struct.s_net = type { i8*, i32, i32*, float, float }
  6. %struct.s_placer_opts = type { i32, float, i32, i32, i8*, i32, i32 }
  7. @net = internal global %struct.s_net* null ; <%struct.s_net**> [#uses=4]
  8. define fastcc void @alloc_and_load_placement_structs(i32 %place_cost_type, i32 %num_regions, float %place_cost_exp, float*** nocapture %old_region_occ_x, float*** nocapture %old_region_occ_y) nounwind ssp {
  9. entry:
  10. br i1 undef, label %bb.i, label %my_malloc.exit
  11. bb.i: ; preds = %entry
  12. unreachable
  13. my_malloc.exit: ; preds = %entry
  14. br i1 undef, label %bb.i81, label %my_malloc.exit83
  15. bb.i81: ; preds = %my_malloc.exit
  16. unreachable
  17. my_malloc.exit83: ; preds = %my_malloc.exit
  18. br i1 undef, label %bb.i.i57, label %my_calloc.exit.i
  19. bb.i.i57: ; preds = %my_malloc.exit83
  20. unreachable
  21. my_calloc.exit.i: ; preds = %my_malloc.exit83
  22. br i1 undef, label %bb.i4.i, label %my_calloc.exit5.i
  23. bb.i4.i: ; preds = %my_calloc.exit.i
  24. unreachable
  25. my_calloc.exit5.i: ; preds = %my_calloc.exit.i
  26. %.pre.i58 = load %struct.s_net*, %struct.s_net** @net, align 4 ; <%struct.s_net*> [#uses=1]
  27. br label %bb17.i78
  28. bb1.i61: ; preds = %bb4.preheader.i, %bb1.i61
  29. br i1 undef, label %bb1.i61, label %bb5.i62
  30. bb5.i62: ; preds = %bb1.i61
  31. br i1 undef, label %bb6.i64, label %bb15.preheader.i
  32. bb15.preheader.i: ; preds = %bb4.preheader.i, %bb5.i62
  33. br label %bb16.i77
  34. bb6.i64: ; preds = %bb5.i62
  35. br i1 undef, label %bb7.i65, label %bb8.i67
  36. bb7.i65: ; preds = %bb6.i64
  37. unreachable
  38. bb8.i67: ; preds = %bb6.i64
  39. br i1 undef, label %bb.i1.i68, label %my_malloc.exit.i70
  40. bb.i1.i68: ; preds = %bb8.i67
  41. unreachable
  42. my_malloc.exit.i70: ; preds = %bb8.i67
  43. %0 = load %struct.s_net*, %struct.s_net** @net, align 4 ; <%struct.s_net*> [#uses=1]
  44. br i1 undef, label %bb9.i71, label %bb16.i77
  45. bb9.i71: ; preds = %bb9.i71, %my_malloc.exit.i70
  46. %1 = load %struct.s_net*, %struct.s_net** @net, align 4 ; <%struct.s_net*> [#uses=1]
  47. br i1 undef, label %bb9.i71, label %bb16.i77
  48. bb16.i77: ; preds = %bb9.i71, %my_malloc.exit.i70, %bb15.preheader.i
  49. %.pre41.i.rle244 = phi %struct.s_net* [ %.pre41.i, %bb15.preheader.i ], [ %0, %my_malloc.exit.i70 ], [ %1, %bb9.i71 ] ; <%struct.s_net*> [#uses=1]
  50. br label %bb17.i78
  51. bb17.i78: ; preds = %bb16.i77, %my_calloc.exit5.i
  52. %.pre41.i = phi %struct.s_net* [ %.pre41.i.rle244, %bb16.i77 ], [ %.pre.i58, %my_calloc.exit5.i ] ; <%struct.s_net*> [#uses=1]
  53. br i1 undef, label %bb4.preheader.i, label %alloc_and_load_unique_pin_list.exit
  54. bb4.preheader.i: ; preds = %bb17.i78
  55. br i1 undef, label %bb1.i61, label %bb15.preheader.i
  56. alloc_and_load_unique_pin_list.exit: ; preds = %bb17.i78
  57. ret void
  58. }
  59. define void @read_net(i8* %net_file) nounwind ssp {
  60. entry:
  61. br i1 undef, label %bb3.us.us.i, label %bb6.preheader
  62. bb6.preheader: ; preds = %entry
  63. br i1 undef, label %bb7, label %bb
  64. bb3.us.us.i: ; preds = %entry
  65. unreachable
  66. bb: ; preds = %bb6.preheader
  67. br i1 undef, label %bb.i34, label %bb1.i38
  68. bb.i34: ; preds = %bb
  69. unreachable
  70. bb1.i38: ; preds = %bb
  71. %mallocsize = mul i64 28, undef ; <i64> [#uses=1]
  72. %malloccall = tail call i8* @malloc(i64 %mallocsize) ; <i8*> [#uses=1]
  73. %0 = bitcast i8* %malloccall to %struct.s_net* ; <%struct.s_net*> [#uses=1]
  74. br i1 undef, label %bb.i1.i39, label %my_malloc.exit2.i
  75. bb.i1.i39: ; preds = %bb1.i38
  76. unreachable
  77. my_malloc.exit2.i: ; preds = %bb1.i38
  78. store %struct.s_net* %0, %struct.s_net** @net, align 4
  79. br i1 undef, label %bb.i7.i40, label %my_malloc.exit8.i
  80. bb.i7.i40: ; preds = %my_malloc.exit2.i
  81. unreachable
  82. my_malloc.exit8.i: ; preds = %my_malloc.exit2.i
  83. unreachable
  84. bb7: ; preds = %bb6.preheader
  85. unreachable
  86. }
  87. declare noalias i8* @malloc(i64)