31 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 42; RUN: opt < %s -passes=newgvn | llvm-dis3 4 %struct.ggBRDF = type { ptr }5 %struct.ggBox3 = type { %struct.ggPoint3, %struct.ggPoint3 }6 %struct.ggMaterialRecord = type { %struct.ggPoint2, %struct.ggBox3, %struct.ggBox3, %struct.ggSpectrum, %struct.ggSpectrum, %struct.ggSpectrum, ptr, i32, i32, i32, i32 }7 %struct.ggONB3 = type { %struct.ggPoint3, %struct.ggPoint3, %struct.ggPoint3 }8 %struct.ggPoint2 = type { [2 x double] }9 %struct.ggPoint3 = type { [3 x double] }10 %struct.ggSpectrum = type { [8 x float] }11 %struct.mrViewingHitRecord = type { double, %struct.ggPoint3, %struct.ggONB3, %struct.ggPoint2, double, %struct.ggSpectrum, %struct.ggSpectrum, i32, i32, i32, i32 }12 %struct.mrXEllipticalCylinder = type { %struct.ggBRDF, float, float, float, float, float, float }13 14define i32 @_ZNK21mrZEllipticalCylinder10viewingHitERK6ggRay3dddR18mrViewingHitRecordR16ggMaterialRecord(ptr %this, ptr %ray, double %unnamed_arg, double %tmin, double %tmax, ptr %VHR, ptr %unnamed_arg2) {15entry:16 %tmp80.i = getelementptr %struct.mrViewingHitRecord, ptr %VHR, i32 0, i32 1, i32 0, i32 0 ; <ptr> [#uses=1]17 store double 0.000000e+00, ptr %tmp80.i18 br i1 false, label %return, label %cond_next.i19 20cond_next.i: ; preds = %entry21 br i1 false, label %return, label %cond_true22 23cond_true: ; preds = %cond_next.i24 %tmp3.i8 = getelementptr %struct.mrViewingHitRecord, ptr %VHR, i32 0, i32 1, i32 0, i32 0 ; <ptr> [#uses=1]25 %tmp46 = load double, ptr %tmp3.i8 ; <double> [#uses=0]26 ret i32 127 28return: ; preds = %cond_next.i, %entry29 ret i32 030}31