This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/81741] Misoptimisation : replacing a constant field read access by a function call
- From: "patrick.pelissier at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 07 Aug 2017 19:47:53 +0000
- Subject: [Bug tree-optimization/81741] Misoptimisation : replacing a constant field read access by a function call
- Auto-submitted: auto-generated
- References: <bug-81741-4@http.gcc.gnu.org/bugzilla/>
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.