[llvm] Add a pass to convert jump tables to switches. (PR #77709)
Alina Sbirlea via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 7 09:59:56 PST 2024
alinas wrote:
Could you add a cl::opt to disable the pass entirely and use that in the pipeline? First iteration should be to commit it with flag disabled and enable it in a follow up PR/merge.
Before turning on by default, consider adding checks using PSI/BPI and also check how/if it affects your testing.
But with the function size limit you added and if the "flag flip" is a separate change, I think this can go in and then iterate over the profitability separately.
https://github.com/llvm/llvm-project/pull/77709
More information about the llvm-commits
mailing list