Re: branch prediction not correctly applied to an if statement in an inline with multiple conditoins

2024-11-30 Thread Richard Biener via Gcc
> Am 30.11.2024 um 08:19 schrieb Mateusz Guzik via Gcc : > > Tested with gcc 14.2 and the Linux kernel compiling for amd64. This is > at Linux next-20241127. This was already the case on gcc 13 (no idea > about earlier versions), I tested 14 to see if the problem is gone. > > In the particula

Re: Branch prediction

2013-05-30 Thread Andrew Haley
On 05/30/2013 03:03 PM, Raphael Clifford wrote: > Thank you for this. My question was about something more specific > however. I am interested specifically in branch prediction. For > example one could add __builtin_expect or the compiler can use the > information it finds in its profiling. How

Re: Branch prediction

2013-05-30 Thread Raphael Clifford
Thank you for this. My question was about something more specific however. I am interested specifically in branch prediction. For example one could add __builtin_expect or the compiler can use the information it finds in its profiling. How is this information used by gcc to provide optimised ass

Re: Branch prediction

2013-05-30 Thread Jan Hubicka
> Is there any documentation for what gcc does with branch prediction > information it gets from profiling? I am interested in this for > modern Pentium processors where you can no longer give hints. The profile feedback drives optimizations (i.e. decision what to optimize for speed and what for