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

--- Comment #11 from Tobias Burnus <burnus at gcc dot gnu.org> ---
> Not the whole commit, but only one small hunk of it was reverted

Which is enough to prevent the folding when the compiler has not been
configured for offloading. If I recall correctly: before your commit, both the
host compiler with offloading configured and a compiler not configured for
offloading folded it to a constant. But with reverting, only a compiler
configured for offloading folds it as it calls the folding function twice while
without offloading configured, it is old called once.

Reply via email to