[llvm] ad1f7a8 - Revert "Make lazyload_metadata.ll resilient to the addition of new metadata kinds"

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 26 14:29:30 PST 2019


Author: Reid Kleckner
Date: 2019-12-26T14:29:11-08:00
New Revision: ad1f7a895ba452ae8d9d0743bdbf8337cf36c5d9

URL: https://github.com/llvm/llvm-project/commit/ad1f7a895ba452ae8d9d0743bdbf8337cf36c5d9
DIFF: https://github.com/llvm/llvm-project/commit/ad1f7a895ba452ae8d9d0743bdbf8337cf36c5d9.diff

LOG: Revert "Make lazyload_metadata.ll resilient to the addition of new metadata kinds"

This reverts commit be4704bd41a4dd8bb5c4dd5a614744c69fb3cf8e.

This test fails on Windows without awk.

Added: 
    

Modified: 
    llvm/test/ThinLTO/X86/lazyload_metadata.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/ThinLTO/X86/lazyload_metadata.ll b/llvm/test/ThinLTO/X86/lazyload_metadata.ll
index 6273c3e48906..79c377724efa 100644
--- a/llvm/test/ThinLTO/X86/lazyload_metadata.ll
+++ b/llvm/test/ThinLTO/X86/lazyload_metadata.ll
@@ -7,19 +7,18 @@
 ; Check that importing @globalfunc1 does not trigger loading all the global
 ; metadata for @globalfunc2 and @globalfunc3
 
-; RUN: llvm-lto -thinlto-action=import %t2.bc -thinlto-index=%t3.bc -stats 2>&1 \
-; RUN:  | awk '{print "LAZY: " $0}' > %t4.txt
-; RUN: llvm-lto -thinlto-action=import %t2.bc -thinlto-index=%t3.bc -stats -disable-ondemand-mds-loading 2>&1 \
-; RUN:  | awk '{print "NOTLAZY: " $0}' > %t5.txt
-; RUN: cat %t4.txt %t5.txt | FileCheck %s
-
-; Check llvm-lto call with lazy loading enabled
-; CHECK: LAZY: [[#LAZY_RECORDS:]] bitcode-reader  - Number of Metadata records loaded
-; CHECK: LAZY: 2 bitcode-reader  - Number of MDStrings loaded
-
-; Check llvm-lto call with lazy loading disabled
-; CHECK: NOTLAZY: [[#LAZY_RECORDS+9]] bitcode-reader  - Number of Metadata records loaded
-; CHECK: NOTLAZY: 7 bitcode-reader  - Number of MDStrings loaded
+; RUN: llvm-lto -thinlto-action=import %t2.bc -thinlto-index=%t3.bc \
+; RUN:          -o /dev/null -stats \
+; RUN:  2>&1 | FileCheck %s -check-prefix=LAZY
+; LAZY: 65 bitcode-reader  - Number of Metadata records loaded
+; LAZY: 2 bitcode-reader  - Number of MDStrings loaded
+
+; RUN: llvm-lto -thinlto-action=import %t2.bc -thinlto-index=%t3.bc \
+; RUN:          -o /dev/null -disable-ondemand-mds-loading -stats \
+; RUN:  2>&1 | FileCheck %s -check-prefix=NOTLAZY
+; NOTLAZY: 74 bitcode-reader  - Number of Metadata records loaded
+; NOTLAZY: 7 bitcode-reader  - Number of MDStrings loaded
+
 
 target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
 target triple = "x86_64-apple-macosx10.11.0"


        


More information about the llvm-commits mailing list