[Bug tree-optimization/79224] [7 Regression] Large C-Ray slowdown
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jan 25 14:31:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79224
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
So it seems r244442 removes one stmt (e.g. in *.fnsplit dump):
--- c-ray-f.i.048t.fnsplit.244441 2017-01-25 09:13:45.000000000 -0500
+++ c-ray-f.i.048t.fnsplit.244442 2017-01-25 09:14:20.000000000 -0500
@@ -1124,7 +1124,6 @@ shade (struct sphere * obj, struct spoin
<bb 14> [1.29%]:
ray.orig = sp_108(D)->pos;
- ray.dir = sp_108(D)->vref;
ray$dir$x_154 = MEM[(struct spoint *)sp_108(D) + 48B];
ray$dir$y_155 = MEM[(struct spoint *)sp_108(D) + 56B];
ray$dir$z_156 = MEM[(struct spoint *)sp_108(D) + 64B];
and that in turn changes the inlining decisions. In r244441:
Inlined into render which now has time 9181 and size 89,net change of -11.
Inlined into shade which now has time 2920 and size 183,net change of -18.
Inlined into render which now has time 17981 and size 141,net change of +52.
Inlined into get_primary_ray which now has time 109 and size 65,net change of
+36.
Inlined into get_primary_ray which now has time 162 and size 102,net change of
+37.
Inlined into trace which now has time 301 and size 152,net change of +102.
and in r244442:
Inlined into render which now has time 9181 and size 89,net change of -11.
Inlined into shade which now has time 2918 and size 179,net change of -18.
Inlined into render which now has time 17981 and size 141,net change of +52.
Inlined into get_primary_ray which now has time 109 and size 65,net change of
+36.
Inlined into get_primary_ray which now has time 162 and size 102,net change of
+37.
Inlined into shade which now has time 2957 and size 216,net change of +37.
Inlined into trace which now has time 301 and size 152,net change of +102.
The difference is that trace has been inlined into shade.
More information about the Gcc-bugs
mailing list