aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h
diff options
context:
space:
mode:
authorShimin Cui <scui@ca.ibm.com>2025-10-28 10:24:32 -0400
committerGitHub <noreply@github.com>2025-10-28 10:24:32 -0400
commit531fd45e9238d0485e3268aaf14ae15d01c7740f (patch)
tree9dda7aba16498ee49d357fd48981e0dbc23549f0 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h
parent0621fd0b8837192612d21785ad60664516513cea (diff)
downloadllvm-531fd45e9238d0485e3268aaf14ae15d01c7740f.zip
llvm-531fd45e9238d0485e3268aaf14ae15d01c7740f.tar.gz
llvm-531fd45e9238d0485e3268aaf14ae15d01c7740f.tar.bz2
[PPC] Set minimum of largest number of comparisons to use bit test for switch lowering (#155910)
Currently it is considered suitable to lower to a bit test for a set of switch case clusters when the the number of unique destinations (`NumDests`) and the number of total comparisons (`NumCmps`) satisfy: `(NumDests == 1 && NumCmps >= 3) || (NumDests == 2 && NumCmps >= 5) || (NumDests == 3 && NumCmps >= 6)` However it is found for some cases on powerpc, for example, when NumDests is 3, and the number of comparisons for each destination is all 2, it's not profitable to lower the switch to bit test. This is to add an option to set the minimum of largest number of comparisons to use bit test for switch lowering. --------- Co-authored-by: Shimin Cui <scui@xlperflep9.rtp.raleigh.ibm.com>
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h')
0 files changed, 0 insertions, 0 deletions