summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/tools/llvm-reduce/deltas/Delta.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/tools/llvm-reduce/deltas/Delta.cpp b/llvm/tools/llvm-reduce/deltas/Delta.cpp
index cf8d88424e2..d33c8e39bf3 100644
--- a/llvm/tools/llvm-reduce/deltas/Delta.cpp
+++ b/llvm/tools/llvm-reduce/deltas/Delta.cpp
@@ -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;
OpenPOWER on IntegriCloud