[Bug tree-optimization/108008] Compiler mis-optimization with posix_memalign

dhsbz at chaw dot com gcc-bugzilla@gcc.gnu.org
Wed Dec 7 22:12:33 GMT 2022


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

dhsbz at chaw dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dhsbz at chaw dot com

--- Comment #2 from dhsbz at chaw dot com ---
I tried the example with gcc master, and it seems to behave as expected (i.e.
sameZ=1 for i=1). Tracking back it seems the commit which restored this was:

commit ce92603fbe3b4870e0a38efee1ee766d62942065 (HEAD)
Author: Richard Biener
Date:   Mon Jul 18 12:06:00 2022 +0200

    Improve common reduction vs builtin code generation in loop distribution
[...]

(using gcc as of the prior commit shows the behavior as in the bug
description). I can't judge if the above commit had fixed an underlying problem
that the example was triggering, or if it changed the behavior in an indirect
way.


More information about the Gcc-bugs mailing list