[Bug tree-optimization/107415] RISCV-gcc: Leaf function compiles as recursive with -O3

michael.meier at hexagon dot com gcc-bugzilla@gcc.gnu.org
Wed Oct 26 12:13:57 GMT 2022


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

--- Comment #2 from Michael Meier <michael.meier at hexagon dot com> ---
(In reply to Andrew Pinski from comment #1)
> Gcc can detect memset and optimize it to memset. And this is what is
> happening. 
> This is documented too.

Thanks for your quick reply. I understand what is happening now.

Now that you pointed me in this direction, I found many references to this
behavior only, including that I can use -fno-tree-loop-distribute-patterns to
disable the optimization. However I didn't find mention of the feature in the
official documentation. Can you provide me with a reference, please?


More information about the Gcc-bugs mailing list