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 optimization/13875] New: [tree-ssa] function not optimized


cc1plus -v
GNU C++ version 3.5-tree-ssa 20040123 (merged 20040102) (i686-pc-linux-gnu)
        compiled by GNU C version 3.5-tree-ssa 20040123 (merged 20040102).

generate-3.4.ii is the famous code from PR8361

cc1plus -quiet -fpreprocessed -O2 generate-3.4.ii -fdump-tree-optimized

Looking at the function HeuristicCounters::~HeuristicCounters() in
generate-3.4.ii.t35.optimized, it seems that this function has not been 
optimized, there are obvious jump threading opportunities.

It is strange that if -fno-inline is added to the command line, then 
HeuristicCounters::~HeuristicCounters() is optimized!

-- 
           Summary: [tree-ssa] function not optimized
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dann at godzilla dot ics dot uci dot edu
                CC: gcc-bugs at gcc dot gnu dot org


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


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