Unverified Commit d26b43ff authored by Alexander Shaposhnikov's avatar Alexander Shaposhnikov Committed by GitHub
Browse files

Add JumpTableToSwitch pass (#77709)

Add a pass to convert jump tables to switches.
The new pass replaces an indirect call with a switch + direct calls if all the functions in the jump table are smaller than the provided threshold.
The pass is currently disabled by default and can be enabled by -enable-jump-table-to-switch.

Test plan: ninja check-all
parent 9308d668
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment