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