[Bug tree-optimization/102829] Redundant null check after atomic load from that address

2021-10-19 Thread laurynas.biveinis at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102829 --- Comment #2 from Laurynas Biveinis --- FWIW adding "if (this == nullptr) __builtin_unreachable();" between __atomic_load_n and return fails to workaround this issue

[Bug middle-end/102829] New: Redundant null check after atomic load from that address

2021-10-19 Thread laurynas.biveinis at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102829 Bug ID: 102829 Summary: Redundant null check after atomic load from that address Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Prio