[compiler-rt] ddfc84e - [fuzzer] Reduce size of large.test

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Tue May 10 01:20:03 PDT 2022


Author: Nikita Popov
Date: 2022-05-10T10:19:04+02:00
New Revision: ddfc84e63494a9689f7cc22cbc391d030ffdb9bb

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

LOG: [fuzzer] Reduce size of large.test

This halves the size of LargeTest, dropping time to compile this
file locally from 14s to 5.5s. Hopefully this will also fix the
persistent timeouts in pre-merge checks.

Differential Revision: https://reviews.llvm.org/D124237

Added: 
    

Modified: 
    compiler-rt/test/fuzzer/LargeTest.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/fuzzer/LargeTest.cpp b/compiler-rt/test/fuzzer/LargeTest.cpp
index 59a1619c078a6..7c942a91bf063 100644
--- a/compiler-rt/test/fuzzer/LargeTest.cpp
+++ b/compiler-rt/test/fuzzer/LargeTest.cpp
@@ -24,8 +24,7 @@ static inline void break_optimization(const void *arg) {
 
 #define B do{A; A; A; A; A; A; A; A; A; A; A; A; A; A; A; A; A; A; }while(0)
 #define C do{B; B; B; B; B; B; B; B; B; B; B; B; B; B; B; B; B; B; }while(0)
-#define D do{C; C; C; C; C; C; C; C; C; C; C; C; C; C; C; C; C; C; }while(0)
-#define E do{D; D; D; D; D; D; D; D; D; D; D; D; D; D; D; D; D; D; }while(0)
+#define D do{C; C; C; C; C; C; C; C; C; }while(0)
 
 volatile int sink;
 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {


        


More information about the llvm-commits mailing list