[Patch] Speedup locale::operator==

Paolo Carlini pcarlini@suse.de
Wed Apr 14 19:15:00 GMT 2004


Hi Jerry,

jlquinn@optonline.net wrote:

>Upon further reflection, the real question is why the compiler can't
>
> hoist the first test above the string constructor.  Are we required
>
> to run it by the language, or is it just a limitation in the current
>
> optimizer?  And if so, will tree-ssa be able to optimize it?
>
Good questions. Two, very incomplete, quick answers:
1- From a practical point of view, neither (recent) tree-ssa neither
lno-branch do any better than mainline...
2- About the language, in principle during the evaluation of the first
expression any side effect can happen, the hoisting seems tricky... I
would like to know more about that.

Paolo.



More information about the Libstdc++ mailing list