summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-reduce
diff options
context:
space:
mode:
authorDiego Trevino Ferrer <diegof30@gmail.com>2019-08-14 20:34:12 +0000
committerDiego Trevino Ferrer <diegof30@gmail.com>2019-08-14 20:34:12 +0000
commit376f64225288df2565e06e92d53d71f54cebf8c2 (patch)
tree0f6d702c9a2b90e80073c0425a9ad07ed0a0738c /llvm/tools/llvm-reduce
parent3f274d4a5596a72a9d1d3caac4a0a8db70c61c1a (diff)
downloadbcm5719-llvm-376f64225288df2565e06e92d53d71f54cebf8c2.tar.gz
bcm5719-llvm-376f64225288df2565e06e92d53d71f54cebf8c2.zip
[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
Diffstat (limited to 'llvm/tools/llvm-reduce')
-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