aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2025-10-07 10:15:25 +0100
committerGitHub <noreply@github.com>2025-10-07 09:15:25 +0000
commit8b8c59c31f41e0a9dad4ca85fdea0f7249c251ee (patch)
treebe231f50cef3ddf7eb1925a8fae10294f879c130 /clang/lib/CodeGen/CodeGenFunction.cpp
parentfb17bc70acd77f1799ee64f6d2a21d8df2944b5a (diff)
downloadllvm-8b8c59c31f41e0a9dad4ca85fdea0f7249c251ee.zip
llvm-8b8c59c31f41e0a9dad4ca85fdea0f7249c251ee.tar.gz
llvm-8b8c59c31f41e0a9dad4ca85fdea0f7249c251ee.tar.bz2
[Loads] Check if Ptr can be freed between Assume and CtxI. (#161255)
When using information from dereferenceable assumptions, we need to make sure that the memory is not freed between the assume and the specified context instruction. Instead of just checking canBeFreed, check if there any calls that may free between the assume and the context instruction. Note that this also adjusts the context instruction to be the terminator in the loop predecessor, if there is one and it is a branch (to avoid things like invoke). PR: https://github.com/llvm/llvm-project/pull/161255
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions