[Bugpoint redesign] Reduced scope of variables in Delta implementation

Summary: This diff also changed the check in `Delta.cpp` to verify interesting-ness, so it exits when the input isn't interesting

Subscribers: llvm-commits

Tags: #llvm

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

llvm-svn: 368915
This commit is contained in:
Diego Trevino Ferrer 2019-08-14 20:34:12 +00:00
parent 3f274d4a55
commit 376f642252
1 changed files with 4 additions and 5 deletions

View File

@ -115,16 +115,15 @@ void llvm::runDeltaPass(
outs() << "\nNothing to reduce\n";
return;
}
if (!Test.run(Test.getReducedFilepath())) {
outs() << "\nInput isn't interesting! Verify interesting-ness test\n";
exit(1);
}
std::vector<Chunk> Chunks = {{1, Targets}};
std::set<Chunk> UninterestingChunks;
std::unique_ptr<Module> ReducedProgram;
if (!Test.run(Test.getReducedFilepath())) {
outs() << "\nInput isn't interesting! Verify interesting-ness test\n";
return;
}
if (!increaseGranularity(Chunks)) {
outs() << "\nAlready at minimum size. Cannot reduce anymore.\n";
return;