[llvm] Add a pass to convert jump tables to switches. (PR #77709)
Alexander Shaposhnikov via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 18 03:29:29 PST 2024
================
@@ -557,6 +558,7 @@ PassBuilder::buildFunctionSimplificationPipeline(OptimizationLevel Level,
// Optimize based on known information about branches, and cleanup afterward.
FPM.addPass(JumpThreadingPass());
+ FPM.addPass(JumpTableToSwitchPass());
----------------
alexander-shaposhnikov wrote:
Done
https://github.com/llvm/llvm-project/pull/77709
More information about the llvm-commits
mailing list