bitwise & optimization

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



To whom it may concern,

I'm turning to you with regards to an unwanted optimization that g++ (v. 4.8.2) is generating, see the code in the following link:
http://goo.gl/3NVjyc

The assembly code generated for both methods "amp", "ampamp" is the practically the same, when using the optimization flag "-O3". However, I'm interested to have a single jump for the code in the method "amp", as branch misprediction penalty is very high otherwise. Is there any optmization flag that I should set, in order to avoid this feature when using "-O3"? I.e., I'd like a generated code similar to icc 13.


Thank you in advance





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux