[Bug tree-optimization/103647] constant array comparison not always folded

2022-01-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103647 --- Comment #3 from Richard Biener --- fab is a bit late for this part of memcmp folding I guess, I'd have expected that to happen in generic folding like when we inline memcpy. It seems it's actually the strlen pass that inlines the compare.

[Bug tree-optimization/103647] constant array comparison not always folded

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103647 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug tree-optimization/103647] constant array comparison not always folded

2021-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103647 --- Comment #1 from Andrew Pinski --- well f should be optimized to return true while g should be optimized to return false.