File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
llvm/tools/llvm-reduce/deltas Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -246,16 +246,20 @@ void llvm::runDeltaPass(TestRunner &Test, const DeltaPass &Pass) {
246
246
ChunkThreadPoolPtr =
247
247
std::make_unique<DefaultThreadPool>(hardware_concurrency (NumJobs));
248
248
249
+ SmallString<0 > OriginalBC;
250
+ DenseSet<Chunk> UninterestingChunks;
251
+ UninterestingChunks.reserve (Targets);
252
+
249
253
bool FoundAtLeastOneNewUninterestingChunkWithCurrentGranularity;
250
254
do {
251
255
FoundAtLeastOneNewUninterestingChunkWithCurrentGranularity = false ;
252
256
253
- DenseSet<Chunk> UninterestingChunks;
257
+ UninterestingChunks. clear () ;
254
258
255
259
// When running with more than one thread, serialize the original bitcode
256
260
// to OriginalBC.
257
- SmallString<0 > OriginalBC;
258
261
if (NumJobs > 1 ) {
262
+ OriginalBC.clear ();
259
263
raw_svector_ostream BCOS (OriginalBC);
260
264
Test.getProgram ().writeBitcode (BCOS);
261
265
}
You can’t perform that action at this time.
0 commit comments