2007-07-25-SinglePredecessor.ll 1.7 KB

1234567891011121314151617181920212223242526272829
  1. ; RUN: opt < %s -gvn | llvm-dis
  2. %struct.ggBRDF = type { i32 (...)** }
  3. %struct.ggBox3 = type { %struct.ggPoint3, %struct.ggPoint3 }
  4. %struct.ggMaterialRecord = type { %struct.ggPoint2, %struct.ggBox3, %struct.ggBox3, %struct.ggSpectrum, %struct.ggSpectrum, %struct.ggSpectrum, %struct.ggBRDF*, i32, i32, i32, i32 }
  5. %struct.ggONB3 = type { %struct.ggPoint3, %struct.ggPoint3, %struct.ggPoint3 }
  6. %struct.ggPoint2 = type { [2 x double] }
  7. %struct.ggPoint3 = type { [3 x double] }
  8. %struct.ggSpectrum = type { [8 x float] }
  9. %struct.mrViewingHitRecord = type { double, %struct.ggPoint3, %struct.ggONB3, %struct.ggPoint2, double, %struct.ggSpectrum, %struct.ggSpectrum, i32, i32, i32, i32 }
  10. %struct.mrXEllipticalCylinder = type { %struct.ggBRDF, float, float, float, float, float, float }
  11. define i32 @_ZNK21mrZEllipticalCylinder10viewingHitERK6ggRay3dddR18mrViewingHitRecordR16ggMaterialRecord(%struct.mrXEllipticalCylinder* %this, %struct.ggBox3* %ray, double %unnamed_arg, double %tmin, double %tmax, %struct.mrViewingHitRecord* %VHR, %struct.ggMaterialRecord* %unnamed_arg2) {
  12. entry:
  13. %tmp80.i = getelementptr %struct.mrViewingHitRecord, %struct.mrViewingHitRecord* %VHR, i32 0, i32 1, i32 0, i32 0 ; <double*> [#uses=1]
  14. store double 0.000000e+00, double* %tmp80.i
  15. br i1 false, label %return, label %cond_next.i
  16. cond_next.i: ; preds = %entry
  17. br i1 false, label %return, label %cond_true
  18. cond_true: ; preds = %cond_next.i
  19. %tmp3.i8 = getelementptr %struct.mrViewingHitRecord, %struct.mrViewingHitRecord* %VHR, i32 0, i32 1, i32 0, i32 0 ; <double*> [#uses=1]
  20. %tmp46 = load double, double* %tmp3.i8 ; <double> [#uses=0]
  21. ret i32 1
  22. return: ; preds = %cond_next.i, %entry
  23. ret i32 0
  24. }