diff options
author | David Major <dmajor@mozilla.com> | 2019-01-09 23:36:32 +0000 |
---|---|---|
committer | David Major <dmajor@mozilla.com> | 2019-01-09 23:36:32 +0000 |
commit | 30ba0a0c950a0cdf23a70fce6c16d501c5f238c8 (patch) | |
tree | 15bca9082414c8a958960309d18180999070afc7 /llvm/lib/Transforms/Utils/LoopUtils.cpp | |
parent | f3a4770475c7d503ed66667f0085f0cdbfc3bbe9 (diff) | |
download | bcm5719-llvm-30ba0a0c950a0cdf23a70fce6c16d501c5f238c8.tar.gz bcm5719-llvm-30ba0a0c950a0cdf23a70fce6c16d501c5f238c8.zip |
Don't require a null terminator when loading objects
When a null terminator is required and the file size is a multiple of the system page size, MemoryBuffer will prefer pread() over mmap(), which can result in excessive memory usage.
Patch by Mike Hommey!
Differential Revision: https://reviews.llvm.org/D56475
llvm-svn: 350774
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions