This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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] |
Hi Honza, interesting tweak!Hi, just simple replacements of switch instructions that are really ifs. Cause about 30% speedup of the loop, but it is quite small difference in overall scores even tought it is one of the most hot loops around.
Can we say something general? I mean, for instance: let's suppose that all the branches are equally probable, in that case, the generated code is *always* faster for a switch?
This kind of knowledge could greatly help in performance tuning the library.
Thanks! Paolo.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |