aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2025-01-16 15:57:01 +0000
committerGitHub <noreply@github.com>2025-01-16 10:57:01 -0500
commiteac23a5b971362cda3c646e018b9f26d0bc1ff3a (patch)
tree3809c1b97d74fd9ae5cf7251d7c6056028468a1d /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h
parentc281b127ab5656eec289cf0b39bf1f473cf71757 (diff)
downloadllvm-eac23a5b971362cda3c646e018b9f26d0bc1ff3a.zip
llvm-eac23a5b971362cda3c646e018b9f26d0bc1ff3a.tar.gz
llvm-eac23a5b971362cda3c646e018b9f26d0bc1ff3a.tar.bz2
[libc++] Add assumption for align of begin and end pointers of vector. (#108961)
Missing information about begin and end pointers of std::vector can lead to missed optimizations in LLVM. This patch adds alignment assumptions at the point where the begin and end pointers are loaded. If the pointers would not have the same alignment, end might never get hit when incrementing begin. See https://github.com/llvm/llvm-project/issues/101372 for a discussion of missed range check optimizations in hardened mode. Once https://github.com/llvm/llvm-project/pull/108958 lands, the created `llvm.assume` calls for the alignment should be folded into the `load` instructions, resulting in no extra instructions after InstCombine. Co-authored-by: Louis Dionne <ldionne.2@gmail.com>
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h')
0 files changed, 0 insertions, 0 deletions