This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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]

Re: [Patch] Speedup locale::operator==


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.


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