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?