[Bug tree-optimization/65412] sequence of ifs not turned into a switch statement

2021-06-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65412 --- Comment #4 from Andrew Pinski --- clang decides at 4 to change it to a switch statement while GCC takes a few extra ifs to change it. Again this is heuristics at work. #define B(y) void f##y(void); #define B10(y) B(y##0) B(y##1)

[Bug tree-optimization/65412] sequence of ifs not turned into a switch statement

2021-06-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65412 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---