brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · f2e1da8 Raw
30 lines · plain
1; RUN: opt < %s -passes=gvn | llvm-dis2 3	%struct.ggBRDF = type { ptr }4	%struct.ggBox3 = type { %struct.ggPoint3, %struct.ggPoint3 }5	%struct.ggMaterialRecord = type { %struct.ggPoint2, %struct.ggBox3, %struct.ggBox3, %struct.ggSpectrum, %struct.ggSpectrum, %struct.ggSpectrum, ptr, 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 13define i32 @_ZNK21mrZEllipticalCylinder10viewingHitERK6ggRay3dddR18mrViewingHitRecordR16ggMaterialRecord(ptr %this, ptr %ray, double %unnamed_arg, double %tmin, double %tmax, ptr %VHR, ptr %unnamed_arg2) {14entry:15	%tmp80.i = getelementptr %struct.mrViewingHitRecord, ptr %VHR, i32 0, i32 1, i32 0, i32 0		; <ptr> [#uses=1]16	store double 0.000000e+00, ptr %tmp80.i17	br i1 false, label %return, label %cond_next.i18 19cond_next.i:		; preds = %entry20	br i1 false, label %return, label %cond_true21 22cond_true:		; preds = %cond_next.i23	%tmp3.i8 = getelementptr %struct.mrViewingHitRecord, ptr %VHR, i32 0, i32 1, i32 0, i32 0		; <ptr> [#uses=1]24	%tmp46 = load double, ptr %tmp3.i8		; <double> [#uses=0]25	ret i32 126 27return:		; preds = %cond_next.i, %entry28	ret i32 029}30