aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Unix/Unix.h
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2023-04-18 18:22:37 +0200
committerNikita Popov <npopov@redhat.com>2023-04-18 18:24:17 +0200
commita722e2366bede3d476c5bf3ff11428102aa4891f (patch)
tree57f7847db97016b3f7c2b97ee85f54d2abfdfbd2 /llvm/lib/Support/Unix/Unix.h
parente3645eadb8f28a522243d628dcc0d37e5af9aecf (diff)
downloadllvm-a722e2366bede3d476c5bf3ff11428102aa4891f.zip
llvm-a722e2366bede3d476c5bf3ff11428102aa4891f.tar.gz
llvm-a722e2366bede3d476c5bf3ff11428102aa4891f.tar.bz2
[GlobalOpt] Don't evaluate large memset (PR62191)
If the memset is large, checking every single byte of the global may be very slow. Add an upper bound on the size of memset we handle. For the common special case of memset zeroinitializer to zero, add a fastpath that checks just that and is not length limited. Fixes https://github.com/llvm/llvm-project/issues/62191.
Diffstat (limited to 'llvm/lib/Support/Unix/Unix.h')
0 files changed, 0 insertions, 0 deletions