You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, we have a downstream pass that does similar optimizations for switch statements, it is geared towards switch based state machines used in embedded products.
We are planning to upstream it in the near future. Please let me know if anyone is planning to work on this ticket.
Reporting from rust-lang/rust#117970
SimplifyCFG could invert nested switches to reduce code size and number of comparisons
Rust example
Compiler explorer
C equivalent
Compiler explorer
The text was updated successfully, but these errors were encountered: