[lld] 717a460 - Drop the number of thinlto jobs in some tests to avoid crashing on 32-bit windows

Hans Wennborg via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 7 00:52:46 PDT 2020


Author: Hans Wennborg
Date: 2020-04-07T09:52:12+02:00
New Revision: 717a460867633008520713614018f3c37503a5ca

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

LOG: Drop the number of thinlto jobs in some tests to avoid crashing on 32-bit windows

Added: 
    

Modified: 
    lld/test/COFF/thinlto.ll
    lld/test/ELF/lto/thinlto.ll
    lld/test/wasm/lto/thinlto.ll

Removed: 
    


################################################################################
diff  --git a/lld/test/COFF/thinlto.ll b/lld/test/COFF/thinlto.ll
index a8390721cc42..8727ac0070a5 100644
--- a/lld/test/COFF/thinlto.ll
+++ b/lld/test/COFF/thinlto.ll
@@ -11,7 +11,7 @@
 ; RUN: llvm-nm %T/thinlto/main.exe1.lto.obj | FileCheck %s
 ; RUN: lld-link /lldsavetemps /out:%T/thinlto/main.exe /entry:main /subsystem:console %T/thinlto/main.obj %T/thinlto/foo.obj /opt:lldltojobs=all
 ; RUN: llvm-nm %T/thinlto/main.exe1.lto.obj | FileCheck %s
-; RUN: lld-link /lldsavetemps /out:%T/thinlto/main.exe /entry:main /subsystem:console %T/thinlto/main.obj %T/thinlto/foo.obj /opt:lldltojobs=1000
+; RUN: lld-link /lldsavetemps /out:%T/thinlto/main.exe /entry:main /subsystem:console %T/thinlto/main.obj %T/thinlto/foo.obj /opt:lldltojobs=100
 ; RUN: llvm-nm %T/thinlto/main.exe1.lto.obj | FileCheck %s
 ; RUN: not lld-link /lldsavetemps /out:%T/thinlto/main.exe /entry:main /subsystem:console %T/thinlto/main.obj %T/thinlto/foo.obj /opt:lldltojobs=foo 2>&1 | FileCheck %s --check-prefix=BAD-JOBS
 ; BAD-JOBS: error: /opt:lldltojobs: invalid job count: foo

diff  --git a/lld/test/ELF/lto/thinlto.ll b/lld/test/ELF/lto/thinlto.ll
index 50e31d1e6232..918f6ffd4c65 100644
--- a/lld/test/ELF/lto/thinlto.ll
+++ b/lld/test/ELF/lto/thinlto.ll
@@ -42,7 +42,7 @@
 
 ; Test with many more threads than the system has
 ; RUN: rm -f %t31.lto.o %t32.lto.o
-; RUN: ld.lld -save-temps --thinlto-jobs=1000 -shared %t1.o %t2.o -o %t3
+; RUN: ld.lld -save-temps --thinlto-jobs=100 -shared %t1.o %t2.o -o %t3
 ; RUN: llvm-nm %t31.lto.o | FileCheck %s --check-prefix=NM1
 ; RUN: llvm-nm %t32.lto.o | FileCheck %s --check-prefix=NM2
 

diff  --git a/lld/test/wasm/lto/thinlto.ll b/lld/test/wasm/lto/thinlto.ll
index da42469f2deb..6c6fada01a3e 100644
--- a/lld/test/wasm/lto/thinlto.ll
+++ b/lld/test/wasm/lto/thinlto.ll
@@ -34,7 +34,7 @@
 
 ; Test with many more threads than the system has
 ; RUN: rm -f %t31.lto.o %t32.lto.o
-; RUN: wasm-ld -r -save-temps --thinlto-jobs=1000 %t1.o %t2.o -o %t3
+; RUN: wasm-ld -r -save-temps --thinlto-jobs=100 %t1.o %t2.o -o %t3
 ; RUN: llvm-nm %t31.lto.o | FileCheck %s --check-prefix=NM1
 ; RUN: llvm-nm %t32.lto.o | FileCheck %s --check-prefix=NM2
 


        


More information about the llvm-commits mailing list