aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetPassConfig.cpp
diff options
context:
space:
mode:
authorserge-sans-paille <sguelton@mozilla.com>2024-11-07 09:01:14 +0000
committerGitHub <noreply@github.com>2024-11-07 09:01:14 +0000
commit5f342816efe1854333f2be41a03fdd25fa0db433 (patch)
tree8da56279a0d6a76d6acdab8d35fda4c96082cd9c /llvm/lib/CodeGen/TargetPassConfig.cpp
parent9b909b8886e35cf5816f660092a2337f779e3e3d (diff)
downloadllvm-5f342816efe1854333f2be41a03fdd25fa0db433.zip
llvm-5f342816efe1854333f2be41a03fdd25fa0db433.tar.gz
llvm-5f342816efe1854333f2be41a03fdd25fa0db433.tar.bz2
[llvm] Use computeConstantRange to improve llvm.objectsize computation (#114673)
Using LazyValueInfo, it is possible to compute valuable information for allocation functions, GEP and alloca, even in the presence of dynamic information. llvm.objectsize plays an important role in _FORTIFY_SOURCE definitions, so improving its diagnostic in turns improves the security of compiled application. As a side note, as a result of recent optimization improvements, clang no longer passes https://github.com/serge-sans-paille/builtin_object_size-test-suite This commit restores the situation and greatly improves the scope of code handled by the static version of __builtin_object_size.
Diffstat (limited to 'llvm/lib/CodeGen/TargetPassConfig.cpp')
0 files changed, 0 insertions, 0 deletions