This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/83288] [8 Regression] polyhedron gas_dyn 2-fold compile-time regression caused by r255103


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83288

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
We're doing a lot more inlining blowing up the CU.  note the bit_speedup thing
below (- is good, + is bad).  Not sure if the intent was to "break" things
like this (SPEC 2k6 int also has some compile-time jumps in this area).

-  enqueuing call qsort.constprop/114 -> qsort.constprop/114, badness -0.000000
+  enqueuing call qsort.constprop/114 -> qsort.constprop/114, badness -0.000004
...
 Considering cd/11 with 48 size
  to be inlined into drag/12 in gas_dyn.f90:291
- Estimated badness is -0.015686, frequency 1.00.
+ Estimated badness is -1.333333, frequency 1.00.
     Badness calculation for drag/12 -> cd/11
-      size growth 42, time 53.000000 unspec 55.000000  big_speedup
-      -0.003922: guessed profile. frequency 1.000000, count -1 caller count -1
time w/o inlining 99.000000, time with inlining 85.000000 overall growth -6
(current) -6 (original) -6 (compensated)
-      Adjusted by hints -0.015686
+      size growth 42, time 53.000000 unspec 55.000000 
+      -0.333333: guessed profile. frequency 1.000000, count -1 caller count -1
time w/o inlining 99.000000, time with inlining 85.000000 overall growth -6
(current) -6 (original) -6 (compensated)
+      Adjusted by hints -1.333333
                Accounting size:44.00, time:53.00 on predicate exec:(true)
                Accounting size:0.50, time:0.00 on predicate exec:(true)
...
 Considering value/21 with 11 size
  to be inlined into readin/18 in gas_dyn.f90:1393
- Estimated badness is -0.000004, frequency 274.47.
+ Estimated badness is -0.106369, frequency 274.47.
     Badness calculation for readin/18 -> value/21
-      size growth 5, time 18.865600 unspec 20.865600  big_speedup
-      -0.000004: guessed profile. frequency 274.469895, count -1 caller count
-1 time w/o inlining 27612.909485, time with inlining 23770.330963 overall
growth 85 (current) 85 (original) 7225 (compensated)
-      Adjusted by hints -0.000004
+      size growth 5, time 18.865600 unspec 20.865600 
+      -0.106369: guessed profile. frequency 274.469895, count -1 caller count
-1 time w/o inlining 27612.909485, time with inlining 23770.330963 overall
growth 85 (current) 85 (original) 7225 (compensated)
+      Adjusted by hints -0.106369
                Accounting size:3.50, time:823.41 on predicate exec:(true)
...
-  enqueuing call value/115 -> value_.part.1/113, badness -0.013826
+  enqueuing call value/115 -> value_.part.1/113, badness -395.421551
...
 Considering value_.part.1/113 with 26 size
  to be inlined into value/115 in unknown:0
- Estimated badness is -0.013826, frequency 134.16.
+ Estimated badness is -395.421551, frequency 134.16.
     Badness calculation for value/115 -> value_.part.1/113
       size growth 19, time 48.000000 unspec 50.000000 
-      -0.003456: guessed profile. frequency 134.160883, count -1 caller count
-1 time w/o inlining 30478.375122, time with inlining 28600.122757 overall
growth 12 (current) -7 (original) -7 (compensated)
-      Adjusted by hints -0.013826
+      -98.855388: guessed profile. frequency 134.160883, count -1 caller count
-1 time w/o inlining 30478.375122, time with inlining 28600.122757 overall
growth 12 (current) -7 (original) -7 (compensated)
+      Adjusted by hints -395.421551
                Accounting size:14.00, time:1744.09 on predicate exec:(true)
...
 Considering qsort.constprop/114 with 82 size
- to be inlined into qsort.constprop/151 in gas_dyn.f90:1614
- Estimated badness is -0.000000, frequency 0.26.
-    Badness calculation for qsort.constprop/151 -> qsort.constprop/114
+ to be inlined into qsort.constprop/149 in gas_dyn.f90:1614
+ Estimated badness is -0.000047, frequency 0.26.
+    Badness calculation for qsort.constprop/149 -> qsort.constprop/114
       size growth 72, time 70.186200 unspec 81.186200 IPA hints: loop_stride
-      -0.000000: guessed profile. frequency 0.256760, count -1 caller count -1 
time w/o inlining 29073.890945, time with inlining 29068.242218 overall growth
1
44 (current) 82 (original) 6724 (compensated)
-      Adjusted by hints -0.000000
-   not inlining recursively: not executed in profile
+      -0.000012: guessed profile. frequency 0.256760, count -1 caller count -1 
time w/o inlining 29073.890945, time with inlining 29068.242218 overall growth
144 (current) 82 (original) 6724 (compensated)
+      Adjusted by hints -0.000047
+ Peeling recursion with depth 1
(!)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]