[Bug middle-end/47664] New: early inliner now needs iteration for multiple calls

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Feb 9 15:58:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47664

           Summary: early inliner now needs iteration for multiple calls
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: rguenth@gcc.gnu.org


void foo0();
inline void bar0() { foo0(); }
void foobar() { bar0(); bar0(); bar0(); }

;; Function foobar (foobar)

Considering inline candidate bar0.
 Inlining bar0 into foobar.
Processing frequency bar0
  Called by bar0 that is normal or hot
Inlining bar0 to foobar with frequency 1000
Considering inline candidate bar0.
 Inlining bar0 into foobar.
Processing frequency bar0
  Called by bar0 that is normal or hot
Inlining bar0 to foobar with frequency 1000
Considering inline candidate bar0.
 Inlining bar0 into foobar.
Processing frequency bar0
  Called by bar0 that is normal or hot
Inlining bar0 to foobar with frequency 1000
Iterations: 3

I have a patch.



More information about the Gcc-bugs mailing list