[Patch] (Partial) fix for libstdc++/14078
Paolo Carlini
pcarlini@suse.de
Tue Feb 10 17:54:00 GMT 2004
Hi,
this is a partial fix for the PR, which only declares the operators
inline. For the first test, on my machine (P4-2400, -O2), manip,
100000000 iterations:
current mainline
----------------
4.660u 0.000s 0:04.79 97.2% 0+0k 0+0io 179pf+0w
current + patch
---------------
2.430u 0.000s 0:02.50 97.2% 0+0k 0+0io 177pf+0w
Better results, working around deficiencies of the current inliner
(http://gcc.gnu.org/ml/libstdc++/2003-02/msg00302.html) could be
obtained by adding const qualifiers to the signatures.
Since I'm told that tree-ssa already has those problems fixed, I
think it's cleaner not fiddling with the signature. Anyway, the
performance testcase should allow us to track the issue in detail.
To answer Falk concerns, I have verified that code size doesn't
increase, quite to the contrary (-O2, stripped):
current
-------
5268
current + patch
---------------
5196
Tested x86-linux. If nobody objects, will commit tomorrow morning.
Paolo.
//////////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_14078
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20040210/7f9066b5/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_14078
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20040210/7f9066b5/attachment-0001.ksh>
More information about the Libstdc++
mailing list