aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/lua_api/TestLuaAPI.py
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2025-10-08 14:24:29 +0200
committerGitHub <noreply@github.com>2025-10-08 14:24:29 +0200
commit4c8275470465528c469436d37b9aaf71d6598899 (patch)
treeaa087a084927998abf9fcdd36923e196d1fbb043 /lldb/test/API/lua_api/TestLuaAPI.py
parent805451faedabf0e227b51683d43ebe3093115e58 (diff)
downloadllvm-4c8275470465528c469436d37b9aaf71d6598899.zip
llvm-4c8275470465528c469436d37b9aaf71d6598899.tar.gz
llvm-4c8275470465528c469436d37b9aaf71d6598899.tar.bz2
[SimplifyCFG] Allow some switch optimizations early in the pipeline (#158242)
While we do not want to form actual lookup tables early, we do want to perform some optimizations, as they may enable inlining of the much simpler form. Builds on https://github.com/llvm/llvm-project/pull/156477, which originally included this change as well. This PR makes two changes on top of it: * Do not perform the optimization early if it requires adding a mask check. These make the resulting IR less analyzable. * Add a new SimplifyCFG option that controls switch-to-arithmetic conversion separately from switch-to-lookup conversion. Enable the new flag at the end of the function simplification pipeline. This means that we attempt the arithmetic conversion before inlining, but avoid it in the early pipeline, where it may lose information.
Diffstat (limited to 'lldb/test/API/lua_api/TestLuaAPI.py')
0 files changed, 0 insertions, 0 deletions