aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.cpp
diff options
context:
space:
mode:
authorMartin Sebor <msebor@redhat.com>2022-06-17 10:09:44 -0600
committerMartin Sebor <msebor@redhat.com>2022-06-17 10:35:35 -0600
commit5fb67e32f8fdcbe8d140440c6d20a5dd219dba86 (patch)
treecbb959c751ebcbb3ae47694ae36fd86f1ee2defd /lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.cpp
parentfc6b2281bfd747b3e24d23e2ee8de189f741770f (diff)
downloadllvm-5fb67e32f8fdcbe8d140440c6d20a5dd219dba86.zip
llvm-5fb67e32f8fdcbe8d140440c6d20a5dd219dba86.tar.gz
llvm-5fb67e32f8fdcbe8d140440c6d20a5dd219dba86.tar.bz2
[InstCombine] Fold memcmp of constant arrays and variable size
The memcmp simplifier is limited to folding to constants calls with constant arrays and constant sizes. This change adds the ability to simplify memcmp(A, B, N) calls with constant A and B and variable N to the pseudocode equivalent of N <= Pos ? 0 : (A < B ? -1 : B < A ? +1 : 0) where Pos is the offset of the first mismatch between A and B. Differential Revision: https://reviews.llvm.org/D127766
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.cpp')
0 files changed, 0 insertions, 0 deletions