crash_bullet.ll 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. ; RUN: opt < %s -basicaa -slp-vectorizer -dce -S -mtriple=x86_64-apple-macosx10.8.0 -mcpu=corei7
  2. target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
  3. target triple = "x86_64-apple-macosx10.8.0"
  4. %"struct.btTypedConstraint::btConstraintInfo1.17.157.357.417.477.960" = type { i32, i32 }
  5. define void @_ZN23btGeneric6DofConstraint8getInfo1EPN17btTypedConstraint17btConstraintInfo1E(%"struct.btTypedConstraint::btConstraintInfo1.17.157.357.417.477.960"* nocapture %info) {
  6. entry:
  7. br i1 undef, label %if.else, label %if.then
  8. if.then: ; preds = %entry
  9. ret void
  10. if.else: ; preds = %entry
  11. %m_numConstraintRows4 = getelementptr inbounds %"struct.btTypedConstraint::btConstraintInfo1.17.157.357.417.477.960", %"struct.btTypedConstraint::btConstraintInfo1.17.157.357.417.477.960"* %info, i64 0, i32 0
  12. %nub5 = getelementptr inbounds %"struct.btTypedConstraint::btConstraintInfo1.17.157.357.417.477.960", %"struct.btTypedConstraint::btConstraintInfo1.17.157.357.417.477.960"* %info, i64 0, i32 1
  13. br i1 undef, label %land.lhs.true.i.1, label %if.then7.1
  14. land.lhs.true.i.1: ; preds = %if.else
  15. br i1 undef, label %for.inc.1, label %if.then7.1
  16. if.then7.1: ; preds = %land.lhs.true.i.1, %if.else
  17. %inc.1 = add nsw i32 0, 1
  18. store i32 %inc.1, i32* %m_numConstraintRows4, align 4
  19. %dec.1 = add nsw i32 6, -1
  20. store i32 %dec.1, i32* %nub5, align 4
  21. br label %for.inc.1
  22. for.inc.1: ; preds = %if.then7.1, %land.lhs.true.i.1
  23. %0 = phi i32 [ %dec.1, %if.then7.1 ], [ 6, %land.lhs.true.i.1 ]
  24. %1 = phi i32 [ %inc.1, %if.then7.1 ], [ 0, %land.lhs.true.i.1 ]
  25. %inc.2 = add nsw i32 %1, 1
  26. store i32 %inc.2, i32* %m_numConstraintRows4, align 4
  27. %dec.2 = add nsw i32 %0, -1
  28. store i32 %dec.2, i32* %nub5, align 4
  29. unreachable
  30. }
  31. %class.GIM_TRIANGLE_CALCULATION_CACHE.9.34.69.94.119.144.179.189.264.284.332 = type { float, [3 x %class.btVector3.5.30.65.90.115.140.175.185.260.280.330], [3 x %class.btVector3.5.30.65.90.115.140.175.185.260.280.330], %class.btVector4.7.32.67.92.117.142.177.187.262.282.331, %class.btVector4.7.32.67.92.117.142.177.187.262.282.331, %class.btVector3.5.30.65.90.115.140.175.185.260.280.330, %class.btVector3.5.30.65.90.115.140.175.185.260.280.330, %class.btVector3.5.30.65.90.115.140.175.185.260.280.330, %class.btVector3.5.30.65.90.115.140.175.185.260.280.330, [4 x float], float, float, [4 x float], float, float, [16 x %class.btVector3.5.30.65.90.115.140.175.185.260.280.330], [16 x %class.btVector3.5.30.65.90.115.140.175.185.260.280.330], [16 x %class.btVector3.5.30.65.90.115.140.175.185.260.280.330] }
  32. %class.btVector3.5.30.65.90.115.140.175.185.260.280.330 = type { [4 x float] }
  33. %class.btVector4.7.32.67.92.117.142.177.187.262.282.331 = type { %class.btVector3.5.30.65.90.115.140.175.185.260.280.330 }
  34. define void @_ZN30GIM_TRIANGLE_CALCULATION_CACHE18triangle_collisionERK9btVector3S2_S2_fS2_S2_S2_fR25GIM_TRIANGLE_CONTACT_DATA(%class.GIM_TRIANGLE_CALCULATION_CACHE.9.34.69.94.119.144.179.189.264.284.332* %this) {
  35. entry:
  36. %arrayidx26 = getelementptr inbounds %class.GIM_TRIANGLE_CALCULATION_CACHE.9.34.69.94.119.144.179.189.264.284.332, %class.GIM_TRIANGLE_CALCULATION_CACHE.9.34.69.94.119.144.179.189.264.284.332* %this, i64 0, i32 2, i64 0, i32 0, i64 1
  37. %arrayidx36 = getelementptr inbounds %class.GIM_TRIANGLE_CALCULATION_CACHE.9.34.69.94.119.144.179.189.264.284.332, %class.GIM_TRIANGLE_CALCULATION_CACHE.9.34.69.94.119.144.179.189.264.284.332* %this, i64 0, i32 2, i64 0, i32 0, i64 2
  38. %0 = load float, float* %arrayidx36, align 4
  39. %add587 = fadd float undef, undef
  40. %sub600 = fsub float %add587, undef
  41. store float %sub600, float* undef, align 4
  42. %sub613 = fsub float %add587, %sub600
  43. store float %sub613, float* %arrayidx26, align 4
  44. %add626 = fadd float %0, undef
  45. %sub639 = fsub float %add626, undef
  46. %sub652 = fsub float %add626, %sub639
  47. store float %sub652, float* %arrayidx36, align 4
  48. br i1 undef, label %if.else1609, label %if.then1595
  49. if.then1595: ; preds = %entry
  50. br i1 undef, label %return, label %for.body.lr.ph.i.i1702
  51. for.body.lr.ph.i.i1702: ; preds = %if.then1595
  52. unreachable
  53. if.else1609: ; preds = %entry
  54. unreachable
  55. return: ; preds = %if.then1595
  56. ret void
  57. }
  58. define void @_Z8dBoxBox2RK9btVector3PKfS1_S1_S3_S1_RS_PfPiiP12dContactGeomiRN36btDiscreteCollisionDetectorInterface6ResultE() {
  59. entry:
  60. %add8.i2343 = fadd float undef, undef
  61. %add8.i2381 = fadd float undef, undef
  62. br i1 undef, label %return, label %if.end
  63. if.end: ; preds = %entry
  64. br i1 undef, label %return, label %if.end111
  65. if.end111: ; preds = %if.end
  66. br i1 undef, label %return, label %if.end136
  67. if.end136: ; preds = %if.end111
  68. br i1 undef, label %return, label %if.end162
  69. if.end162: ; preds = %if.end136
  70. br i1 undef, label %return, label %if.end189
  71. if.end189: ; preds = %if.end162
  72. br i1 undef, label %return, label %if.end216
  73. if.end216: ; preds = %if.end189
  74. br i1 undef, label %if.then218, label %if.end225
  75. if.then218: ; preds = %if.end216
  76. br label %if.end225
  77. if.end225: ; preds = %if.then218, %if.end216
  78. br i1 undef, label %return, label %if.end248
  79. if.end248: ; preds = %if.end225
  80. br i1 undef, label %return, label %if.end304
  81. if.end304: ; preds = %if.end248
  82. %mul341 = fmul float undef, %add8.i2343
  83. %mul344 = fmul float undef, %add8.i2381
  84. %sub345 = fsub float %mul341, %mul344
  85. br i1 undef, label %return, label %if.end361
  86. if.end361: ; preds = %if.end304
  87. %mul364 = fmul float %add8.i2381, %add8.i2381
  88. br i1 undef, label %if.then370, label %if.end395
  89. if.then370: ; preds = %if.end361
  90. br i1 undef, label %if.then374, label %if.end395
  91. if.then374: ; preds = %if.then370
  92. %cmp392 = fcmp olt float %sub345, 0.000000e+00
  93. br label %if.end395
  94. if.end395: ; preds = %if.then374, %if.then370, %if.end361
  95. unreachable
  96. return: ; preds = %if.end304, %if.end248, %if.end225, %if.end189, %if.end162, %if.end136, %if.end111, %if.end, %entry
  97. ret void
  98. }