summaryrefslogtreecommitdiffstats
path: root/llvm/test/Reduce
Commit message (Collapse)AuthorAgeFilesLines
* [Testing] Python 3 requires `print` to use parensDavid Zarzycki2019-09-201-1/+1
| | | | llvm-svn: 372392
* llvm-reduce: Add pass to reduce instructionsDavid Blaikie2019-09-195-8/+53
| | | | | | | | Patch by Diego Treviño! Differential Revision: https://reviews.llvm.org/D66263 llvm-svn: 372282
* llvm-reduce: Add pass to reduce basic blocksDavid Blaikie2019-09-182-0/+45
| | | | | | | | Patch by Diego Treviño! Differential Revision: https://reviews.llvm.org/D66320 llvm-svn: 372264
* llvm-reduce: Clean out previous test temp/output dir, since it was a dir and ↵David Blaikie2019-09-164-0/+4
| | | | | | now it's used as just a single file llvm-svn: 372054
* llvm-reduce: Make tests shell-independent by passing the interpreter on the ↵David Blaikie2019-09-164-44/+8
| | | | | | command line rather than using #! in the test file llvm-svn: 372049
* Fix llvm-reduce tests so that they don't assume the source code isTim Shen2019-09-124-8/+4
| | | | | | | | | writable. Instead of copying over the original file permissions, just create a new file and add the executable bit. llvm-svn: 371772
* llvm-reduce: For now, mark these tests as requiring a shellDavid Blaikie2019-09-124-0/+4
| | | | | | | (since they execute shell scripts/that's the only entry point at the moment) llvm-svn: 371764
* llvm-reduce: Remove unused plugin support/requirementsDavid Blaikie2019-09-124-4/+0
| | | | llvm-svn: 371755
* Reapply llvm-reduce: Add pass to reduce parameters""David Blaikie2019-09-122-0/+38
| | | | | | | | | | 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-123-6/+6
| | | | | | | | | | | | | | | 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
* PR43278: Temporarily disable llvm-reduce tests due to exhausting temp filesDavid Blaikie2019-09-113-6/+6
| | | | llvm-svn: 371679
* Revert "llvm-reduce: Add pass to reduce parameters"David Blaikie2019-09-112-38/+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/+38
| | | | | | | | Patch by Diego Treviño! Differential Revision: https://reviews.llvm.org/D65479 llvm-svn: 371567
* llvm-reduce: Add pass to reduce MetadataDavid Blaikie2019-09-102-0/+37
| | | | | | | | Patch by Diego Treviño! Differential Revision: https://reviews.llvm.org/D65026 llvm-svn: 371562
* llvm-reduce: Simplify testing using -implicit-check-notDavid Blaikie2019-09-102-9/+4
| | | | | | | Also fix llvm-reduce to use the specified output file name directly, without appending '.ll' to the name. llvm-svn: 371555
* llvm-reduce: Use %python from lit to get the correct/valid python binary for ↵David Blaikie2019-09-053-4/+21
| | | | | | the reduction script llvm-svn: 371143
* [Bugpoint redesign] Added Pass to Remove Global VariablesDiego Trevino Ferrer2019-08-152-0/+39
| | | | | | | | | | | | | | | | | 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-151-2/+1
| | | | | | | | | | | | | | | | | | 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-153-41/+1
| | | | | | | | | | | | | | 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
* [Bugpoint redesign] Modified Functions pass to consider declarationsDiego Trevino Ferrer2019-08-141-4/+1
| | | | | | | | | | | | | | 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-143-1/+41
| | | | | | | | | | | | | | | 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
* Added Delta IR Reduction ToolDiego Trevino Ferrer2019-08-082-0/+44
| | | | | | | | | | | | | | | | 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-072-44/+0
| | | | | | This reverts r368071 (git commit a2584978f5bb41973d65a145b0d9459b81e3ac6d) llvm-svn: 368217
* Added Delta IR Reduction ToolDiego Trevino Ferrer2019-08-072-0/+44
| | | | | | | | | | | | | | | | 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-074-90/+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
* [Bugpoint redesign] Added Pass to Remove Global VariablesDiego Trevino Ferrer2019-08-072-0/+47
| | | | | | | | | | | | | | | 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-072-0/+43
| | | | | | | | | | | | | | | | 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-062-59/+0
| | | | | | This reverts commit r368071, it broke buildbots. llvm-svn: 368073
* Added Delta IR Reduction ToolDiego Trevino Ferrer2019-08-062-0/+59
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