summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-reduce/deltas
Commit message (Collapse)AuthorAgeFilesLines
* llvm-reduce: Follow-up to 372280, now with more-better msan fixingDavid Blaikie2019-09-191-1/+1
| | | | llvm-svn: 372349
* Fix -Wdocumentation "@returns in a void function" warning. NFCI.Simon Pilgrim2019-09-191-1/+0
| | | | llvm-svn: 372310
* llvm-reduce: Add pass to reduce instructionsDavid Blaikie2019-09-192-0/+86
| | | | | | | | Patch by Diego Treviño! Differential Revision: https://reviews.llvm.org/D66263 llvm-svn: 372282
* llvm-reduce: Avoid use-after-free when removing a branch instructionDavid Blaikie2019-09-191-2/+7
| | | | | | Found my msan buildbot & pointed out by Nico Weber - thanks Nico! llvm-svn: 372280
* llvm-reduce: Remove inaccurate doxy comment about a return that isn't returnedDavid Blaikie2019-09-181-1/+0
| | | | | | | Addressing post-commit code review feedback from Dávid Bolvanský - thanks! llvm-svn: 372271
* llvm-reduce: Fix inconsistencies between int/unsigned usage (standardize on int)David Blaikie2019-09-187-31/+32
| | | | llvm-svn: 372270
* llvm-reduce: Add pass to reduce basic blocksDavid Blaikie2019-09-182-0/+162
| | | | | | | | Patch by Diego Treviño! Differential Revision: https://reviews.llvm.org/D66320 llvm-svn: 372264
* Fix -Wdocumentation "@returns in a void function" warning. NFCI.Simon Pilgrim2019-09-181-1/+0
| | | | llvm-svn: 372212
* Reapply llvm-reduce: Add pass to reduce parameters""David Blaikie2019-09-122-0/+147
| | | | | | | | | | Fixing a couple of asan-identified bugs * use of an invalid "Use" iterator after the element was removed * use of StringRef to Function name after the Function was erased This reapplies r371567, which was reverted in r371580. llvm-svn: 371700
* PR43278: llvm-reduce: Use temporary file names (and ToolOutputFile) rather ↵David Blaikie2019-09-121-35/+22
| | | | | | | | | | | | | | | 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
* [llvm-reduce] Fix a bug, improve error handling when running testReid Kleckner2019-09-111-2/+3
| | | | | | | | | | llvm::sys::ExecuteAndWait can report errors, so let's make use of that. Second, while iterating uses of functions to remove, a call can appear multiple times. Use a SetVector so we don't attempt to erase such a call twice. llvm-svn: 371653
* Fix -Wdocumentation warning - void function doesn't need a @returns. NFCI.Simon Pilgrim2019-09-111-1/+0
| | | | llvm-svn: 371606
* Revert "llvm-reduce: Add pass to reduce parameters"David Blaikie2019-09-112-146/+0
| | | | | | | | Looks to be failing on asan buildbots This reverts commit r371567. llvm-svn: 371580
* llvm-reduce: Add pass to reduce parametersDavid Blaikie2019-09-102-0/+146
| | | | | | | | Patch by Diego Treviño! Differential Revision: https://reviews.llvm.org/D65479 llvm-svn: 371567
* llvm-reduce: Remove some unused headers/more narrowly include themDavid Blaikie2019-09-104-9/+9
| | | | llvm-svn: 371564
* llvm-remove: Remove "using namespace" in header.David Blaikie2019-09-104-5/+10
| | | | llvm-svn: 371563
* llvm-reduce: Add pass to reduce MetadataDavid Blaikie2019-09-102-0/+157
| | | | | | | | Patch by Diego Treviño! Differential Revision: https://reviews.llvm.org/D65026 llvm-svn: 371562
* [llvm-reduce] Silence -WdocumentationBenjamin Kramer2019-08-241-1/+0
| | | | | | ReduceGlobalVars.cpp:17:6: warning: '@returns' command used in a comment that is attached to a function returning void llvm-svn: 369848
* [Bugpoint redesign] Added Pass to Remove Global VariablesDiego Trevino Ferrer2019-08-152-0/+92
| | | | | | | | | | | | | | | | | 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: 368918 llvm-svn: 369061
* [Bugpoint redesign] Output option can now print to STDOUTDiego Trevino Ferrer2019-08-153-38/+28
| | | | | | | | | | | | | | | | | | 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
* Revert [Bugpoint redesign] Added Pass to Remove Global VariablesDiego Trevino Ferrer2019-08-152-91/+0
| | | | | | | | | | | | | | This reverts r368918 because it was unstable! It broke these builds: * http://lab.llvm.org:8011/builders/lld-x86_64-ubuntu-fast/builds/4649 * http://lab.llvm.org:8011/builders/clang-ppc64be-linux-lnt/builds/29966 * http://lab.llvm.org:8011/builders/clang-ppc64be-linux-lnt/builds/29964 But surprisingly this passed: * http://lab.llvm.org:8011/builders/clang-ppc64be-linux-lnt/builds/29965 llvm-svn: 369039
* [NFC] Remove documentation comment to fix warning.Jonas Devlieghere2019-08-151-1/+0
| | | | | | | Remove the @return to fix the warning: '@returns' command used in a comment that is attached to a function returning void [-Wdocumentation] llvm-svn: 368957
* [Bugpoint redesign] Modified Functions pass to consider declarationsDiego Trevino Ferrer2019-08-141-22/+15
| | | | | | | | | | | | | | Summary: This modification was put in place so the `ReduceMetadata` pass doesn't have to consider debug functions Reviewers: dblaikie Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D66257 llvm-svn: 368934
* [Bugpoint redesign] Added Pass to Remove Global VariablesDiego Trevino Ferrer2019-08-142-0/+92
| | | | | | | | | | | | | | | 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: 368918
* [Bugpoint redesign] Reduced scope of variables in Delta implementationDiego Trevino Ferrer2019-08-141-5/+4
| | | | | | | | | | | | 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
* Fix -Wdocumentation warning (@returns used in void function). NFCI.Simon Pilgrim2019-08-131-2/+1
| | | | llvm-svn: 368693
* Added Delta IR Reduction ToolDiego Trevino Ferrer2019-08-084-0/+363
| | | | | | | | | | | | | | | | 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
* Revert Added Delta IR Reduction ToolDiego Trevino Ferrer2019-08-074-392/+0
| | | | | | This reverts r368071 (git commit a2584978f5bb41973d65a145b0d9459b81e3ac6d) llvm-svn: 368217
* Added Delta IR Reduction ToolDiego Trevino Ferrer2019-08-074-0/+392
| | | | | | | | | | | | | | | | 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
* Reverts commit r368117, r368115 and r368112Petr Hosek2019-08-076-451/+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
* Added Tool as Dependency to tests & fixed warningsDiego Trevino Ferrer2019-08-074-7/+7
| | | | | | | | | | | | Summary: Fixes http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-bootstrap-msan/builds/14002 and http://lab.llvm.org:8011/builders/lld-x86_64-darwin13/builds/35392/steps/build_Lld/logs/stdio Subscribers: mgorny, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D65843 llvm-svn: 368117
* [Bugpoint redesign] Added Pass to Remove Global VariablesDiego Trevino Ferrer2019-08-076-198/+315
| | | | | | | | | | | | | | | 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
* Added Delta IR Reduction ToolDiego Trevino Ferrer2019-08-073-0/+334
| | | | | | | | | | | | | | | | 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
* Revert "Added Delta IR Reduction Tool"Dmitri Gribenko2019-08-063-333/+0
| | | | | | This reverts commit r368071, it broke buildbots. llvm-svn: 368073
* Added Delta IR Reduction ToolDiego Trevino Ferrer2019-08-063-0/+333
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
OpenPOWER on IntegriCloud