Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions llvm/tools/llvm-reduce/deltas/Delta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,16 +244,20 @@ void llvm::runDeltaPass(TestRunner &Test, const DeltaPass &Pass) {
ChunkThreadPoolPtr =
std::make_unique<DefaultThreadPool>(hardware_concurrency(NumJobs));

SmallString<0> OriginalBC;
DenseSet<Chunk> UninterestingChunks;
UninterestingChunks.reserve(Targets);

bool FoundAtLeastOneNewUninterestingChunkWithCurrentGranularity;
do {
FoundAtLeastOneNewUninterestingChunkWithCurrentGranularity = false;

DenseSet<Chunk> UninterestingChunks;
UninterestingChunks.clear();

// When running with more than one thread, serialize the original bitcode
// to OriginalBC.
SmallString<0> OriginalBC;
if (NumJobs > 1) {
OriginalBC.clear();
raw_svector_ostream BCOS(OriginalBC);
Test.getProgram().writeBitcode(BCOS);
}
Expand Down