Linker: Eliminate uncalled functions, because they can be ill-defined.
Fixes issue #610. Also provides a testing option to keep uncalled functions.
This commit is contained in:
@@ -507,123 +507,6 @@ ERROR: node is still EOpNull!
|
||||
0:38 's2' (temp structure{temp mediump float f, temp 10-element array of mediump float a})
|
||||
0:38 true case is null
|
||||
0:40 'b' (temp mediump int)
|
||||
0:54 Function Definition: foo10( (global void)
|
||||
0:54 Function Parameters:
|
||||
0:67 Function Definition: f11(s21; (global void)
|
||||
0:67 Function Parameters:
|
||||
0:67 'p2d' (in lowp sampler2D)
|
||||
0:87 Function Definition: foo234( (global void)
|
||||
0:87 Function Parameters:
|
||||
0:89 Sequence
|
||||
0:89 texture (global highp 4-component vector of float)
|
||||
0:89 's3D2' (uniform highp sampler3D)
|
||||
0:89 Constant:
|
||||
0:89 0.200000
|
||||
0:89 0.200000
|
||||
0:89 0.200000
|
||||
0:89 Constant:
|
||||
0:89 0.200000
|
||||
0:90 textureProj (global highp 4-component vector of float)
|
||||
0:90 's3D2' (uniform highp sampler3D)
|
||||
0:90 direct index (smooth temp mediump 4-component vector of float)
|
||||
0:90 'v' (smooth in 3-element array of mediump 4-component vector of float)
|
||||
0:90 Constant:
|
||||
0:90 1 (const int)
|
||||
0:90 Constant:
|
||||
0:90 0.400000
|
||||
0:91 dPdx (global mediump 4-component vector of float)
|
||||
0:91 direct index (smooth temp mediump 4-component vector of float)
|
||||
0:91 'v' (smooth in 3-element array of mediump 4-component vector of float)
|
||||
0:91 Constant:
|
||||
0:91 0 (const int)
|
||||
0:92 Constant:
|
||||
0:92 0.000000
|
||||
0:93 fwidth (global mediump float)
|
||||
0:93 'f13' (invariant global mediump float)
|
||||
0:98 Function Definition: foo236( (global void)
|
||||
0:98 Function Parameters:
|
||||
0:100 Sequence
|
||||
0:100 dPdx (global mediump 4-component vector of float)
|
||||
0:100 direct index (smooth temp mediump 4-component vector of float)
|
||||
0:100 'v' (smooth in 3-element array of mediump 4-component vector of float)
|
||||
0:100 Constant:
|
||||
0:100 0 (const int)
|
||||
0:101 Constant:
|
||||
0:101 0.000000
|
||||
0:102 fwidth (global mediump float)
|
||||
0:102 'f13' (invariant global mediump float)
|
||||
0:103 move second child to first child (temp mediump float)
|
||||
0:103 'gl_FragDepth' (temp mediump float)
|
||||
0:103 'f13' (invariant global mediump float)
|
||||
0:104 move second child to first child (temp highp float)
|
||||
0:104 'gl_FragDepthEXT' (gl_FragDepth highp float FragDepth)
|
||||
0:104 'f13' (invariant global mediump float)
|
||||
0:109 Function Definition: foo239( (global void)
|
||||
0:109 Function Parameters:
|
||||
0:111 Sequence
|
||||
0:111 move second child to first child (temp mediump float)
|
||||
0:111 'gl_FragDepth' (temp mediump float)
|
||||
0:111 'f13' (invariant global mediump float)
|
||||
0:112 move second child to first child (temp highp float)
|
||||
0:112 'gl_FragDepthEXT' (gl_FragDepth highp float FragDepth)
|
||||
0:112 'f13' (invariant global mediump float)
|
||||
0:119 Function Definition: foo245( (global void)
|
||||
0:119 Function Parameters:
|
||||
0:121 Sequence
|
||||
0:121 texture (global lowp 4-component vector of float)
|
||||
0:121 'sExt' (uniform lowp samplerExternalOES)
|
||||
0:121 Constant:
|
||||
0:121 0.200000
|
||||
0:121 0.200000
|
||||
0:122 textureProj (global lowp 4-component vector of float)
|
||||
0:122 'sExt' (uniform lowp samplerExternalOES)
|
||||
0:122 Construct vec3 (temp lowp 3-component vector of float)
|
||||
0:122 'f13' (invariant global mediump float)
|
||||
0:123 textureProj (global lowp 4-component vector of float, operation at mediump)
|
||||
0:123 'sExt' (uniform lowp samplerExternalOES)
|
||||
0:123 direct index (smooth temp mediump 4-component vector of float)
|
||||
0:123 'v' (smooth in 3-element array of mediump 4-component vector of float)
|
||||
0:123 Constant:
|
||||
0:123 2 (const int)
|
||||
0:130 Function Definition: foo246( (global void)
|
||||
0:130 Function Parameters:
|
||||
0:132 Sequence
|
||||
0:132 texture (global mediump 4-component vector of float)
|
||||
0:132 'mediumExt' (uniform mediump samplerExternalOES)
|
||||
0:132 Constant:
|
||||
0:132 0.200000
|
||||
0:132 0.200000
|
||||
0:133 textureProj (global highp 4-component vector of float)
|
||||
0:133 'highExt' (uniform highp samplerExternalOES)
|
||||
0:133 direct index (smooth temp mediump 4-component vector of float)
|
||||
0:133 'v' (smooth in 3-element array of mediump 4-component vector of float)
|
||||
0:133 Constant:
|
||||
0:133 2 (const int)
|
||||
0:134 Constant:
|
||||
0:134 0.000000
|
||||
0:135 Constant:
|
||||
0:135 0.000000
|
||||
0:137 Bitwise not (temp mediump int)
|
||||
0:137 'a' (temp mediump int)
|
||||
0:138 inclusive-or (temp mediump int)
|
||||
0:138 'a' (temp mediump int)
|
||||
0:138 'a' (temp mediump int)
|
||||
0:139 bitwise and (temp mediump int)
|
||||
0:139 'a' (temp mediump int)
|
||||
0:139 'a' (temp mediump int)
|
||||
0:145 Function Definition: foo203940(i1;f1;f1; (global mediump int)
|
||||
0:145 Function Parameters:
|
||||
0:145 'a' (in mediump int)
|
||||
0:145 'b' (in mediump float)
|
||||
0:147 Sequence
|
||||
0:147 textureProjGrad (global lowp 4-component vector of float, operation at mediump)
|
||||
0:147 's2Dg' (uniform lowp sampler2D)
|
||||
0:147 Construct vec3 (temp mediump 3-component vector of float)
|
||||
0:147 'f13' (invariant global mediump float)
|
||||
0:147 'uv2' (invariant uniform mediump 2-component vector of float)
|
||||
0:147 'uv2' (invariant uniform mediump 2-component vector of float)
|
||||
0:148 Branch: Return with expression
|
||||
0:148 'a' (in mediump int)
|
||||
0:151 Sequence
|
||||
0:151 move second child to first child (temp mediump float)
|
||||
0:151 'f123' (global mediump float)
|
||||
@@ -634,75 +517,6 @@ ERROR: node is still EOpNull!
|
||||
0:152 'f124' (global mediump float)
|
||||
0:152 Constant:
|
||||
0:152 50000000000.000000
|
||||
0:158 Function Definition: foo323433( (global void)
|
||||
0:158 Function Parameters:
|
||||
0:160 Sequence
|
||||
0:160 textureLod (global lowp 4-component vector of float, operation at mediump)
|
||||
0:160 's2Dg' (uniform lowp sampler2D)
|
||||
0:160 'uv2' (invariant uniform mediump 2-component vector of float)
|
||||
0:160 'f13' (invariant global mediump float)
|
||||
0:161 textureProjGrad (global lowp 4-component vector of float, operation at mediump)
|
||||
0:161 's2Dg' (uniform lowp sampler2D)
|
||||
0:161 Construct vec3 (temp mediump 3-component vector of float)
|
||||
0:161 'f13' (invariant global mediump float)
|
||||
0:161 'uv2' (invariant uniform mediump 2-component vector of float)
|
||||
0:161 'uv2' (invariant uniform mediump 2-component vector of float)
|
||||
0:162 textureGrad (global lowp 4-component vector of float, operation at mediump)
|
||||
0:162 's2Dg' (uniform lowp sampler2D)
|
||||
0:162 'uv2' (invariant uniform mediump 2-component vector of float)
|
||||
0:162 'uv2' (invariant uniform mediump 2-component vector of float)
|
||||
0:162 'uv2' (invariant uniform mediump 2-component vector of float)
|
||||
0:163 textureGrad (global lowp 4-component vector of float)
|
||||
0:163 'sCube' (uniform lowp samplerCube)
|
||||
0:163 Construct vec3 (temp lowp 3-component vector of float)
|
||||
0:163 'f13' (invariant global mediump float)
|
||||
0:163 Construct vec3 (temp lowp 3-component vector of float)
|
||||
0:163 'f13' (invariant global mediump float)
|
||||
0:163 Construct vec3 (temp lowp 3-component vector of float)
|
||||
0:163 'f13' (invariant global mediump float)
|
||||
0:167 Function Definition: fgfg(f1;i1; (global mediump int)
|
||||
0:167 Function Parameters:
|
||||
0:167 'f' (in mediump float)
|
||||
0:167 'i' (in highp int)
|
||||
0:167 Sequence
|
||||
0:167 Branch: Return with expression
|
||||
0:167 Constant:
|
||||
0:167 2 (const int)
|
||||
0:173 Function Definition: gggf(f1; (global mediump int)
|
||||
0:173 Function Parameters:
|
||||
0:173 'f' (in mediump float)
|
||||
0:173 Sequence
|
||||
0:173 Branch: Return with expression
|
||||
0:173 Constant:
|
||||
0:173 2 (const int)
|
||||
0:175 Function Definition: agggf(f1; (global mediump int)
|
||||
0:175 Function Parameters:
|
||||
0:175 'f' (in mediump float)
|
||||
0:175 Sequence
|
||||
0:175 Branch: Return with expression
|
||||
0:175 Constant:
|
||||
0:175 2 (const int)
|
||||
0:187 Function Definition: badswizzle( (global void)
|
||||
0:187 Function Parameters:
|
||||
0:? Sequence
|
||||
0:190 'a' (temp 5-element array of mediump 3-component vector of float)
|
||||
0:191 'a' (temp 5-element array of mediump 3-component vector of float)
|
||||
0:192 'a' (temp 5-element array of mediump 3-component vector of float)
|
||||
0:193 Constant:
|
||||
0:193 5 (const int)
|
||||
0:194 Constant:
|
||||
0:194 0.000000
|
||||
0:199 Function Definition: fooinittest( (global mediump float)
|
||||
0:199 Function Parameters:
|
||||
0:201 Sequence
|
||||
0:201 Branch: Return with expression
|
||||
0:201 Function Call: fooinit( (global mediump float)
|
||||
0:209 Function Definition: fooinit( (global mediump float)
|
||||
0:209 Function Parameters:
|
||||
0:211 Sequence
|
||||
0:211 Branch: Return with expression
|
||||
0:211 Constant:
|
||||
0:211 12.000000
|
||||
0:214 Sequence
|
||||
0:214 move second child to first child (temp mediump int)
|
||||
0:214 'init1' (global mediump int)
|
||||
|
||||
Reference in New Issue
Block a user