[PATCH] D47266: Update thin-lto cache file atimes when on windows
Owen Reynolds via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 23 08:50:20 PDT 2018
gbreynoo created this revision.
gbreynoo added reviewers: pcc, Bigcheese, twoh.
Herald added subscribers: llvm-commits, eraman, inglorion, mehdi_amini.
Thin-lto cache file atimes are used for expiration based pruning, and since Vista, access file times are not updated by Windows by default:
https://blogs.technet.microsoft.com/filecab/2006/11/07/disabling-last-access-time-in-windows-vista-to-improve-ntfs-performance/
This means on Windows, cache files are currently being pruned from creation time. This change manually updates cache files that are accessed by Thin-lto, when on Windows.
Repository:
rL LLVM
https://reviews.llvm.org/D47266
Files:
include/llvm/Support/FileSystem.h
include/llvm/Support/MemoryBuffer.h
lib/LTO/Caching.cpp
lib/LTO/ThinLTOCodeGenerator.cpp
lib/Support/MemoryBuffer.cpp
lib/Support/Unix/Path.inc
lib/Support/Windows/Path.inc
test/ThinLTO/X86/cache.ll
unittests/Support/Path.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47266.148217.patch
Type: text/x-patch
Size: 12265 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180523/36357f11/attachment.bin>
More information about the llvm-commits
mailing list