[Bug c++/108537] New: constexpr UB pointer dereference compiles if the dereferenced value is not used

2023-01-25 Thread ed at edwardrosten dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108537 Bug ID: 108537 Summary: constexpr UB pointer dereference compiles if the dereferenced value is not used Product: gcc Version: 12.2.1 Status: UNCONFIRMED Severi

[Bug tree-optimization/103429] Optimization of Auto-generated condition chain is not giving good lookup tables.

2021-11-25 Thread ed at edwardrosten dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103429 --- Comment #2 from Edward Rosten --- It is doing if-to-switch, but only really with N=5, and only if force-inline is set. I think this are two problems, one is that you need to force-inline in order to trigger if-to-switch. The other problem i

[Bug c++/103429] New: Optimization of Auto-generated condition chain is not giving good lookup tables.

2021-11-25 Thread ed at edwardrosten dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103429 Bug ID: 103429 Summary: Optimization of Auto-generated condition chain is not giving good lookup tables. Product: gcc Version: 12.0 Status: UNCONFIRMED Keyword