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 middle-end/81914] [7/8 Regression] gcc 7.1 generates branch for code which was branchless in earlier gcc version


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

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 42856
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42856&action=edit
gcc8-pr81914.patch

Untested patch that handles all the cases in the #c7 testcase.  Though it will
not handle some comparison functions in GCC (e.g. those which sometimes just
return a - b or similar).
If it doesn't look like a completely dumb approach, we probably should test it
on SPEC (unfortunately I don't have a reasonable setup for that right now).

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