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/81741] Misoptimisation : replacing a constant field read access by a function call


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

--- Comment #2 from Patrick Pelissier <patrick.pelissier at gmail dot com> ---
I can reproduce the behavior without __builtin_constant_p by removing it from
the M_ASSUME macro :

# define M_ASSUME(x)                                    \
  (  (x) ?                                              \
   (void) 0 : __builtin_unreachable())

It still generates the same instructions.

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