https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83411
--- Comment #6 from Martin Liška <marxin at gcc dot gnu.org> --- (In reply to Yury Gribov from comment #5) > (In reply to Martin Liška from comment #4) > > So finding > > a point like your 'loop' and using flatten attribute can guarantee the > > call-chain is fully optimized. Would be interesting to come up with more > > examples from real applications. > > As this is not immediately obvious and/or googleable, perhaps we could add a > note to docs for pragma target and target/target_clones attributes? Sure, I've just sent a patch: https://gcc.gnu.org/ml/gcc-patches/2020-01/msg00107.html