[Bug tree-optimization/120221] Missed optimization related to switch handling

2025-05-13 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120221 --- Comment #8 from Richard Biener --- (In reply to Filip Kastl from comment #7) > So this isn't specific for switches. Rather, this is some kind of forward > propagation of a shift that we don't currently do, right? Yes, it's basically an exp

[Bug tree-optimization/120221] Missed optimization related to switch handling

2025-05-13 Thread pheeck at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120221 --- Comment #7 from Filip Kastl --- So this isn't specific for switches. Rather, this is some kind of forward propagation of a shift that we don't currently do, right?

[Bug tree-optimization/120221] Missed optimization related to switch handling

2025-05-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120221 Richard Biener changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|2025-05-11 00:00:

[Bug tree-optimization/120221] Missed optimization related to switch handling

2025-05-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120221 Andrew Pinski changed: What|Removed |Added Ever confirmed|1 |0 Status|WAITING

[Bug tree-optimization/120221] Missed optimization related to switch handling

2025-05-11 Thread christophe.jaillet at wanadoo dot fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120221 --- Comment #5 from Christophe Jaillet --- Created attachment 61406 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61406&action=edit generated asm file The generated output. The first fuction has a shrq. A shift is expected here. The 2n

[Bug tree-optimization/120221] Missed optimization related to switch handling

2025-05-11 Thread christophe.jaillet at wanadoo dot fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120221 --- Comment #4 from Christophe Jaillet --- The naming I've used is really bad. function_ok() is where the code looks *NOT* optimal and function_ko() where the generated code looks better...

[Bug tree-optimization/120221] Missed optimization related to switch handling

2025-05-11 Thread christophe.jaillet at wanadoo dot fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120221 --- Comment #3 from Christophe Jaillet --- Created attachment 61405 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61405&action=edit Reduced reproducer With the attached file, I manage to reproduce the behavior. The #define are the one

[Bug tree-optimization/120221] Missed optimization related to switch handling

2025-05-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120221 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug tree-optimization/120221] Missed optimization related to switch handling

2025-05-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120221 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement Keywords|