This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/11680] member access of C++ class with all methods inline should be optimized better
- From: "dberlin at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jul 2003 05:33:05 -0000
- Subject: [Bug optimization/11680] member access of C++ class with all methods inline should be optimized better
- References: <20030727051349.11680.dbaron@dbaron.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11680
------- Additional Comments From dberlin at gcc dot gnu dot org 2003-07-27 05:33 -------
Try the tree-ssa branch, which should and does help quite a lot for these types of problems
My numbers:
mainline:
[dberlin@dberlin dberlin]$ time ./a.out slow
real 0m3.777s
user 0m3.770s
sys 0m0.010s
[dberlin@dberlin dberlin]$ time ./a.out fast
real 0m1.065s
user 0m1.070s
sys 0m0.000s
tree-ssa:
[dberlin@dberlin dberlin]$ time ./a.out slow
real 0m1.356s
user 0m1.360s
sys 0m0.000s
[dberlin@dberlin dberlin]$ time ./a.out fast
real 0m1.120s
user 0m1.110s
sys 0m0.010s