Adding link for xref: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120264 Thanks, Cassio.
On Mon, 12 May 2025 at 10:06, Jonathan Wakely <jwak...@redhat.com> wrote: > On Sun, 11 May 2025 at 12:34, Cassio Neri <cassio.n...@gmail.com> wrote: > > > > Hi all, > > > > After reflecting on my previous message and Andrew's, I now believe this > patch is not the best solution to optimise the day of the week. Instead, > the optimisation for n % 7 should be done by the compiler depending on the > platform. > > > > I'll open a missing optimisation opportunity bug report against GCC with > my suggestions. > > > > Therefore, expecting a better solution from the compiler, I'd ask you to > disregard this patch. > > OK. Thank you both for working through this. > >