summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Revert "[libFuzzer] XFAIL fuzzer-oom.test on Darwin."Ahmed Bougacha2017-04-201-1/+0
| | | | | | | | This reverts commit r300127. r300759 implemented StopTheWorld for Darwin, so the test passes again. llvm-svn: 300801
* [libFuzzer] extend help for -minimize_crash to cover ↵Kostya Serebryany2017-04-191-0/+2
| | | | | | ASAN_OPTIONS=dedup_token_length=3 llvm-svn: 300800
* [APInt] Implement operator==(uint64_t) similar to ugt/ult(uint64_t) to ↵Craig Topper2017-04-192-14/+1
| | | | | | remove one of the out of line EqualsSlowCase methods. llvm-svn: 300799
* [APInt] Don't call getActiveBits() in ult/ugt(uint64_t) if its a single word.Craig Topper2017-04-191-2/+4
| | | | | | | | The compiled code already needs to check single/multi word for the countLeadingZeros call inside of getActiveBits, but it isn't able to optimize out the leadingZeros call in the single word case that can't produce a value larger than 64. This shrank the opt binary by about 5-6k on my local x86-64 build. llvm-svn: 300798
* Statepoint Docs: fix incorrect uses of it'sSanjoy Das2017-04-191-4/+6
| | | | llvm-svn: 300797
* [APInt] Use ugt(uint64_t) for the compare in getLimitedValue(uint64_t) since ↵Craig Topper2017-04-191-2/+1
| | | | | | the code is identical to it. NFC llvm-svn: 300796
* [DAE] Simplify attribute list creation, NFCReid Kleckner2017-04-191-9/+6
| | | | | | Removes a use of getSlotAttributes, which I intend to change. llvm-svn: 300795
* Revert r300789: There are Windows bot failures.Kuba Mracek2017-04-191-20/+14
| | | | llvm-svn: 300794
* Fix bug that caused DwarfExpression to drop DW_OP_deref from FI locationsAdrian Prantl2017-04-196-19/+62
| | | | | | | | | | | - introduced in r300522 and found via the Swift LLDB testsuite. The fix is to set the location kind to memory whenever an FrameIndex location is emitted. rdar://problem/31707602 llvm-svn: 300793
* Revert "Fix bug that caused DwarfExpression to drop DW_OP_deref from FI ↵Adrian Prantl2017-04-195-27/+19
| | | | | | | | locations" This reverts commit r300790. llvm-svn: 300792
* Revert earlier change. ds permute operations affect lgkm counter. Kannan Narayanan2017-04-191-2/+0
| | | | | | Differential Revision: https://reviews.llvm.org/D32254 llvm-svn: 300791
* Fix bug that caused DwarfExpression to drop DW_OP_deref from FI locationsAdrian Prantl2017-04-195-19/+27
| | | | | | | | | | | - introduced in r300522 and found via the Swift LLDB testsuite. The fix is to set the location kind to memory whenever an FrameIndex location is emitted. rdar://problem/31707602 llvm-svn: 300790
* [libFuzzer] Always build libFuzzerKuba Mracek2017-04-191-14/+20
| | | | | | | | | | | | | There are two reasons why users might want to build libfuzzer: - To fuzz LLVM itself - To get the libFuzzer.a archive file, so that they can attach it to their code This change always builds libfuzzer, and supports the second use case if the specified flag is set. The point of this patch is to have something that can potentially be shipped with the compiler, and this also ensures that the version of libFuzzer is correct to use with that compiler. Differential Revision: https://reviews.llvm.org/D32096 llvm-svn: 300789
* change what branches Appveyor buildsEric Fiselier2017-04-191-1/+1
| | | | llvm-svn: 300788
* [GlobalOpt] Simplify attribute code stripping nest, NFCReid Kleckner2017-04-191-10/+5
| | | | llvm-svn: 300787
* Add appveyor.yml config for a future Windows bot.Eric Fiselier2017-04-191-0/+97
| | | | | | | | I'm currently trying to get a libc++ Windows builder working on appveyor. This patch adds the configuration file needed to build libc++ on Appveyor. Details of where the buildbot can be found will come later llvm-svn: 300786
* Fix !N and !-N commands and add a test case.Jim Ingham2017-04-193-3/+52
| | | | | | <rdar://problem/31713267> llvm-svn: 300785
* Simplify test for sret attribute in instcombineReid Kleckner2017-04-193-27/+35
| | | | | | | | | This change is correct because the verifier requires that at most one argument be marked 'sret'. NFC, removes a use of AttributeList slot APIs. llvm-svn: 300784
* Temporarily revert r299221 to fix nondeterminism in ThinLTO builder.Galina Kistanova2017-04-192-46/+18
| | | | llvm-svn: 300783
* Refresh the statepoint docs a bitPhilip Reames2017-04-191-59/+92
| | | | | | The documentation had gotten a bit stale. The revised one are by no means perfect, but I tried to remove the obvious incorrect or misleading statements. llvm-svn: 300782
* X86FrameLowering: Fix getFrameIndexReference() for 'fixed' objectsMatthias Braun2017-04-193-6/+83
| | | | | | | | | | | Debug information is calculated with getFrameIndexReference() which was missing some logic for the fixed object cases (= parameters on the stack). rdar://24557797 Differential Revision: https://reviews.llvm.org/D32204 llvm-svn: 300781
* [sanitizer-coverage] remove more unused codeKostya Serebryany2017-04-195-97/+0
| | | | llvm-svn: 300780
* [Object] Fix some Clang-tidy modernize and Include What You Use warnings; ↵Eugene Zelenko2017-04-1910-135/+253
| | | | | | other minor fixes (NFC). llvm-svn: 300779
* [sanitizer-coverage] remove some more stale codeKostya Serebryany2017-04-192-33/+5
| | | | llvm-svn: 300778
* Remove two unused variables (-Werror).Evgeniy Stepanov2017-04-191-3/+0
| | | | llvm-svn: 300777
* [sanitizer-coverage] trim down the docsKostya Serebryany2017-04-191-170/+0
| | | | llvm-svn: 300776
* [sanitizer-coverage] remove run-time support for ↵Kostya Serebryany2017-04-196-230/+0
| | | | | | -fsanitize-coverage=indirect-calls llvm-svn: 300775
* [APInt] Cast more calls to add/sub/mul overflow functions to void. I missed ↵Craig Topper2017-04-191-4/+4
| | | | | | the unittests in r300758. llvm-svn: 300773
* [DAG] add splat vector support for 'or' in SimplifyDemandedBitsSanjay Patel2017-04-193-21/+16
| | | | | | | | | | | I've changed one of the tests to not fold away, but we didn't and still don't do the transform that the comment claims we do (and I don't know why we'd want to do that). Follow-up to: https://reviews.llvm.org/rL300725 https://reviews.llvm.org/rL300763 llvm-svn: 300772
* Fix typo in Windows test configuration codeEric Fiselier2017-04-191-1/+1
| | | | llvm-svn: 300770
* [sanitizer-coverage] remove stale codeKostya Serebryany2017-04-193-101/+4
| | | | llvm-svn: 300769
* [libFuzzer] remove -output_csv option. It duplicates the default output and ↵Kostya Serebryany2017-04-194-14/+1
| | | | | | got out of sync llvm-svn: 300768
* [sanitizer-coverage] deprecate -fsanitize-coverage=trace-bbKostya Serebryany2017-04-192-8/+8
| | | | llvm-svn: 300767
* [sanitizer-coverage] remove run-time support for -fsanitize-coverage=trace-bbKostya Serebryany2017-04-193-164/+0
| | | | llvm-svn: 300766
* Fixup style from r300760Francis Ricci2017-04-191-3/+3
| | | | llvm-svn: 300765
* Corrrect warn_unused_result attribute Erich Keane2017-04-193-7/+48
| | | | | | | | | | | | The original idea was that if the attribute on an operator, that the return-value unused-ness wouldn't matter. However, all of the operators except postfix inc/dec return references! References don't result in this warning anyway, so those are already excluded. Differential Revision: https://reviews.llvm.org/D32207 llvm-svn: 300764
* [DAG] add splat vector support for 'xor' in SimplifyDemandedBitsSanjay Patel2017-04-197-48/+38
| | | | | | | | | This allows forming more 'not' ops, so we get improvements for ISAs that have and-not. Follow-up to: https://reviews.llvm.org/rL300725 llvm-svn: 300763
* Fix assertion failure in codegen on non-template deduction guide.Richard Smith2017-04-192-0/+25
| | | | llvm-svn: 300762
* ARMFrameLowering: Reserve emergency spill slot for large argumentsMatthias Braun2017-04-192-8/+129
| | | | | | | | | | | | | | | | Re-commit after revert in r300668. Changed getMaxFPOffset() to a more conservative heuristic instead of trying to be clever and missing for some exotic calling conventions. We need to reserve an emergency spill slot in cases with large argument types that could overflow immediate offsets for FP relative address calculations. rdar://31317893 Differential Revision: https://reviews.llvm.org/D31643 llvm-svn: 300761
* Make sure to scan mmap'd memory regions for root pointers on OS XFrancis Ricci2017-04-193-29/+58
| | | | | | | | | | | | | | | | | | | Summary: In the general case, we only need to check for root regions inside the memory map returned by procmaps. However, on Darwin, we also need to check inside mmap'd regions, which aren't returned in the list of modules we get from procmaps. This patch refactors memory region scanning on darwin to reduce code duplication with the kernel alloc once page scan. Reviewers: kubamracek, alekseyshl Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D32190 llvm-svn: 300760
* Implement StopTheWorld for DarwinFrancis Ricci2017-04-192-2/+47
| | | | | | | | | | Reviewers: kubamracek, alekseyshl Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D32189 llvm-svn: 300759
* [APInt] Cast calls to add/sub/mul overflow methods to void if only their ↵Craig Topper2017-04-194-6/+6
| | | | | | | | | | overflow bool out param is used. This is preparation for a clang change to improve the [[nodiscard]] warning to not be ignored on methods that return a class marked [[nodiscard]] that are defined in the class itself. See D32207. We should consider adding wrapper methods to APInt that return the overflow flag directly and discard the APInt result. This would eliminate the void casts and the need to create a bool before the call to pass to the out param. llvm-svn: 300758
* [InstCombine] Add frem constant folding test (PR3316)Simon Pilgrim2017-04-191-0/+9
| | | | llvm-svn: 300757
* [CodeGen] Use preincrement version of APInt::operator++ instead of ↵Craig Topper2017-04-191-1/+1
| | | | | | | | postincrement to avoid creating and immediately discarding a temporary APInt. This is preparation for a clang change to improve the [[nodiscard]] warning to not be ignored on methods that return a class marked [[nodiscard]] that are defined in the class itself. See D32207. llvm-svn: 300756
* Fix a leak in tools/driver/cc1as_main.cppKostya Serebryany2017-04-191-2/+2
| | | | | | | | | | | | | | Summary: For some reason, the asan bot has recently started reporting this leak even though it existed for ages. Reviewers: pcc Reviewed By: pcc Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D32243 llvm-svn: 300755
* AMDGPU: Custom lower illegal small select typesMatt Arsenault2017-04-192-117/+301
| | | | | | | Promote them to i32 vectors to avoid unpacking and re-packing the vectors. llvm-svn: 300754
* Code style change as suggested in https://reviews.llvm.org/D32177 (NFC)Dehao Chen2017-04-191-16/+11
| | | | llvm-svn: 300753
* [ARM] Remove redundant computeKnownBits helper.Eli Friedman2017-04-191-29/+14
| | | | | | | | | | | | Move the BFI logic to computeKnownBitsForTargetNode, and delete the redundant CMOV logic. This is intended as a cleanup, but it's probably possible to construct a case where moving the BFI logic allows more combines. Differential Revision: https://reviews.llvm.org/D31795 llvm-svn: 300752
* [GISEL]: Move getConstantVReg to UtilsAditya Nandakumar2017-04-195-20/+21
| | | | | | NFCI llvm-svn: 300751
* [InstCombine] Add frem constant folding test (PR32177)Simon Pilgrim2017-04-191-0/+9
| | | | llvm-svn: 300750
OpenPOWER on IntegriCloud