Hi GCC community, I wanted you take a quick look at this patch to solve this bug [1]. This is the code example for the optimization [2] which does include a link to proof of each different optimization.
I think it should be possible to use simpler approach than what Andrew has used here [3]. P.S. Tested and verified on Linux x86_64. 1) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101808 2) https://compiler-explorer.com/z/Gc448eE3z 3) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101808#c1 Best wishes, Navid.
0001-PR-tree-optimization-101808.patch
Description: 0001-PR-tree-optimization-101808.patch