[llvm] r318419 - Revert "[Support][CachePruning] Fix regression in pruning interval"

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 16 09:00:48 PST 2017


Author: rafael
Date: Thu Nov 16 09:00:48 2017
New Revision: 318419

URL: http://llvm.org/viewvc/llvm-project?rev=318419&view=rev
Log:
Revert "[Support][CachePruning] Fix regression in pruning interval"

This reverts commit r318397.

It broke tools/gold/X86/cache.ll.

Modified:
    llvm/trunk/lib/Support/CachePruning.cpp

Modified: llvm/trunk/lib/Support/CachePruning.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/CachePruning.cpp?rev=318419&r1=318418&r2=318419&view=diff
==============================================================================
--- llvm/trunk/lib/Support/CachePruning.cpp (original)
+++ llvm/trunk/lib/Support/CachePruning.cpp Thu Nov 16 09:00:48 2017
@@ -161,7 +161,7 @@ bool llvm::pruneCache(StringRef Path, Ca
       return false;
     }
   } else {
-    if (Policy.Interval != seconds(0)) {
+    if (Policy.Interval == seconds(0)) {
       // Check whether the time stamp is older than our pruning interval.
       // If not, do nothing.
       const auto TimeStampModTime = FileStatus.getLastModificationTime();




More information about the llvm-commits mailing list