bitwise & optimization
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: gcc-help@xxxxxxxxxxx
- Subject: bitwise & optimization
- From: Fisnik Kastrati <kastrati@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 09 Jun 2015 15:12:27 +0200
- Authentication-results: sourceware.org; auth=none
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0
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]