1. zlib::compress accept &size_t but the param is an uint64_t.
2. Some systems don't have zlib installed. Don't use compression by default.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@370564
91177308-0d34-0410-b5e6-
96231b3b80d8
// Determine whether or not to compress the symbol list when
// writing it into profile. The variable is unused when the symbol
// list is read from an existing profile.
- bool ToCompress = true;
+ bool ToCompress = false;
DenseSet<StringRef> Syms;
BumpPtrAllocator Allocator;
};
StringRef CompressedStrings(reinterpret_cast<const char *>(Data),
CompressSize);
char *Buffer = Allocator.Allocate<char>(UncompressSize);
- llvm::Error E = zlib::uncompress(CompressedStrings, Buffer, UncompressSize);
+ size_t UCSize = UncompressSize;
+ llvm::Error E = zlib::uncompress(CompressedStrings, Buffer, UCSize);
if (E)
return sampleprof_error::uncompress_failed;
ListStart = Buffer;
cl::desc("Path to file containing the list of function symbols "
"used to populate profile symbol list"));
cl::opt<bool> CompressProfSymList(
- "compress-prof-sym-list", cl::init(true), cl::Hidden,
+ "compress-prof-sym-list", cl::init(false), cl::Hidden,
cl::desc("Compress profile symbol list before write it into profile. "));
cl::ParseCommandLineOptions(argc, argv, "LLVM profile data merger\n");