aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-reduce/llvm-reduce.cpp
AgeCommit message (Collapse)AuthorFilesLines
2019-12-05llvm-reduce: Add a space to an option's --helpGeorge Burgess IV1-1/+1
Otherwise, we get "filewith".
2019-09-12PR43278: llvm-reduce: Use temporary file names (and ToolOutputFile) rather ↵David Blaikie1-4/+9
than unique ones - to ensure they're cleaned up This modifies the tool somewhat to only create files when about to run the "interestingness" test, and delete them immediately after - this means some more files will be created sometimes (when "double checking" work - which should probably be fixed/avoided anyway). This now creates temporary files, rather than only unique ones, and also uses ToolOutputFile (without ever calling "keep") to ensure the files are deleted as soon as the interestingness test is run. llvm-svn: 371696
2019-09-10llvm-reduce: Simplify testing using -implicit-check-notDavid Blaikie1-2/+0
Also fix llvm-reduce to use the specified output file name directly, without appending '.ll' to the name. llvm-svn: 371555
2019-08-15[Bugpoint redesign] Output option can now print to STDOUTDiego Trevino Ferrer1-10/+15
Summary: This also changes all the outs() statements to errs() so the output and progress streams don't get mixed. This has been added because D64176 had flaky tests, which I believe were because the reduced file was being catted into `FileCheck`, instead of being pass from STDOUT directly. Reviewers: chandlerc, dblaikie, xbolva00 Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D66314 llvm-svn: 369060
2019-08-08Added Delta IR Reduction ToolDiego Trevino Ferrer1-0/+106
Summary: Tool parses input IR file, and runs the delta debugging algorithm to reduce the functions inside the input file. Reviewers: alexshap, chandlerc Subscribers: mgorny, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D63672 > llvm-svn: 368071 llvm-svn: 368358
2019-08-07Revert Added Delta IR Reduction ToolDiego Trevino Ferrer1-105/+0
This reverts r368071 (git commit a2584978f5bb41973d65a145b0d9459b81e3ac6d) llvm-svn: 368217
2019-08-07Added Delta IR Reduction ToolDiego Trevino Ferrer1-0/+105
Summary: Tool parses input IR file, and runs the delta debugging algorithm to reduce the functions inside the input file. Reviewers: alexshap, chandlerc Subscribers: mgorny, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D63672 > llvm-svn: 368071 llvm-svn: 368214
2019-08-07Reverts commit r368117, r368115 and r368112Petr Hosek1-123/+0
This reverts commits: "Added Delta IR Reduction Tool" "[Bugpoint redesign] Added Pass to Remove Global Variables" "Added Tool as Dependency to tests & fixed warnings" Reduce/remove-funcs.ll is failing on bots. llvm-svn: 368122
2019-08-07[Bugpoint redesign] Added Pass to Remove Global VariablesDiego Trevino Ferrer1-2/+3
Summary: This pass tries to remove Global Variables, as well as their derived uses. For example if a variable `@x` is used by `%call1` and `%call2`, both these uses and the definition of `@x` are deleted. Moreover if `%call1` or `%call2` are used elsewhere those uses are also deleted, and so on recursively. I'm still uncertain if this pass should remove derived uses, I'm open to suggestions. Subscribers: mgorny, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D64176 llvm-svn: 368115
2019-08-07Added Delta IR Reduction ToolDiego Trevino Ferrer1-0/+122
Summary: Tool parses input IR file, and runs the delta debugging algorithm to reduce the functions inside the input file. Reviewers: alexshap, chandlerc Subscribers: mgorny, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D63672 > llvm-svn: 368071 llvm-svn: 368112
2019-08-06Revert "Added Delta IR Reduction Tool"Dmitri Gribenko1-122/+0
This reverts commit r368071, it broke buildbots. llvm-svn: 368073
2019-08-06Added Delta IR Reduction ToolDiego Trevino Ferrer1-0/+122
Summary: Tool parses input IR file, and runs the delta debugging algorithm to reduce the functions inside the input file. Reviewers: alexshap, chandlerc Subscribers: mgorny, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D63672 llvm-svn: 368071