This is the mail archive of the gcc-bugs@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]

[Bug tree-optimization/61383] [4.8/4.9/4.10 Regression] wrong code at -O2 and -O3 on x86_64-linux-gnu


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61383

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebotcazou at gcc dot gnu.org

--- Comment #6 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> There is similar issue in RTL PRE GCSE [1], PR45223.

Right, there are various similar old issues in the RTL optimizers, but we must
be extra careful because we really don't want to pessimize the common case to
fix some artificial testcases.

Note that we have some backup here: the (green) Dragon Book gives a code motion
algorithm that is subject to this kind of issues and the authors elegantly
write "For this reason, it is wise to use the following algorithm for code
motion only if optimization may be inhibited by the programmer". :-)


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