[Bug tree-optimization/104632] Missed optimization about reading backwards

2022-02-22 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104632 Richard Biener changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug tree-optimization/104632] Missed optimization about reading backwards

2022-02-22 Thread lh_mouse at 126 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104632 --- Comment #2 from LIU Hao --- I don't think it's a duplicate. This only happens when reading through a pointer by negative offsets. If I change the code to read by non-negative offsets, GCC is actually very happy about it: https://gcc.godbolt

[Bug tree-optimization/104632] Missed optimization about reading backwards

2022-02-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104632 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement Component|c++