This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [Patch] Speedup locale::operator==
- From: Paolo Carlini <pcarlini at suse dot de>
- To: jlquinn at optonline dot net
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Wed, 14 Apr 2004 21:16:02 +0200
- Subject: Re: [Patch] Speedup locale::operator==
- References: <11e256121744.12174411e256@optonline.net>
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.