summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
* Revert "[RegAllocGreedy] Attempt to split unspillable live intervals"Dylan McKay2016-09-302-86/+6
| | | | | | It was accidentally committed. llvm-svn: 282855
* [AVR] Add the assembly instruction printerDylan McKay2016-09-306-2/+260
| | | | | | | | | | | | | | | | | Summary: This change adds the AVR assembly instruction printer. No tests are included in this patch. I have left them downstream so we can add them once `llc` successfully runs (there's very few components left to upstream until this). Reviewers: arsenm, kparzysz Subscribers: wdng, beanz, mgorny Differential Revision: https://reviews.llvm.org/D25028 llvm-svn: 282854
* [RegAllocGreedy] Attempt to split unspillable live intervalsDylan McKay2016-09-302-6/+86
| | | | | | | | | | | | | | | | | | | | | | | Summary: Previously, when allocating unspillable live ranges, we would never attempt to split. We would always bail out and try last ditch graph recoloring. This patch changes this by attempting to split all live intervals before performing recoloring. This fixes LLVM bug PR14879. I can't add test cases for any backends other than AVR because none of them have small enough register classes to trigger the bug. Reviewers: qcolombet Subscribers: MatzeB Differential Revision: https://reviews.llvm.org/D25070 llvm-svn: 282852
* [CMake] Support symlinks even with LLVM_INSTALL_TOOLCHAIN_ONLYPetr Hosek2016-09-301-3/+3
| | | | | | | | | | When LLVM_INSTALL_TOOLCHAIN_ONLY is used and LLVM_TOOLCHAIN_TOOLS contains a tool which is a symlink, it would be ignored. This already worked before but got broken in r282510. Differential Revision: https://reviews.llvm.org/D25067 llvm-svn: 282844
* [AVX-512] Store address operand should be an input operand for the special ↵Craig Topper2016-09-301-4/+4
| | | | | | stack spilling pseudos for XMM16-31 and YMM16-31 without VLX. llvm-svn: 282843
* [AVX-512] Add the special stack spilling pseudos for XMM16-31 and YMM16-31 ↵Craig Topper2016-09-301-0/+8
| | | | | | without VLX to teh isFrameLoadOpcode and isFrameStoreOpcode. llvm-svn: 282842
* Revert r282835 "[AVX-512] Always use the full 32 register vector classes for ↵Craig Topper2016-09-303-81/+98
| | | | | | | | addRegisterClass regardless of whether AVX512/VLX is enabled or not." Turns out this doesn't pass verify-machineinstrs. llvm-svn: 282841
* [libfuzzer] test for c-ares CVE-2016-5180Kostya Serebryany2016-09-303-0/+50
| | | | llvm-svn: 282839
* [LDist] Port to new streaming API for opt remarksAdam Nemet2016-09-301-17/+26
| | | | llvm-svn: 282838
* [X86] Add AVX-512 VTs to findRepresentativeClass as well as v16i16 which was ↵Craig Topper2016-09-301-3/+5
| | | | | | | | also missing. Change register class to include the extra 16 AVX512 registers. I'm not completely sure what this method does or why all the 256-bit VTs returned VR128RegClass when the comments on the method definiton say it should return the largest super register class. I just figured AVX-512 should be similar. llvm-svn: 282836
* [AVX-512] Always use the full 32 register vector classes for ↵Craig Topper2016-09-303-98/+81
| | | | | | | | | | addRegisterClass regardless of whether AVX512/VLX is enabled or not. If AVX512 is disabled, the registers should already be marked reserved. Pattern predicates and register classes on instructions should take care of most of the rest. Loads/stores and physical register copies for XMM16-31 and YMM16-31 without VLX have already been taken care of. I'm a little unclear why this changed the register allocation of the SSE2 run of the sad.ll test, but the registers selected appear to be valid after this change. llvm-svn: 282835
* [LoopUnroll] Port to the new streaming interface for opt remarks.Adam Nemet2016-09-302-31/+41
| | | | llvm-svn: 282834
* [thinlto] Don't decay threshold for hot callsitesPiotr Padlewski2016-09-303-25/+101
| | | | | | | | | | | | | | Summary: We don't want to decay hot callsites to import chains of hot callsites. The same mechanism is used in LIPO. Reviewers: tejohnson, eraman, mehdi_amini Subscribers: llvm-commits, mehdi_amini Differential Revision: https://reviews.llvm.org/D24976 llvm-svn: 282833
* AMDGPU: Use unsigned compare for eq/neMatt Arsenault2016-09-3051-159/+157
| | | | | | | | | | For some reason there are both of these available, except for scalar 64-bit compares which only has u64. I'm not sure why there are both (I'm guessing it's for the one bit inputs we don't use), but for consistency always using the unsigned one. llvm-svn: 282832
* [libFuzzer] remove the code for -print_pcs=1 with the old coverage. It still ↵Kostya Serebryany2016-09-304-47/+2
| | | | | | works with the new one (trace-pc-guard) llvm-svn: 282831
* [libFuzzer] more the feature set to InputCorpus; on feature update, change ↵Kostya Serebryany2016-09-304-39/+80
| | | | | | the feature counter of the old best input llvm-svn: 282829
* [LoopDataPrefetch] Port to new streaming API for opt remarksAdam Nemet2016-09-303-1/+14
| | | | llvm-svn: 282826
* Move UTF functions into namespace llvm.Justin Lebar2016-09-303-19/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: This lets people link against LLVM and their own version of the UTF library. I determined this only affects llvm, clang, lld, and lldb by running $ git grep -wl 'UTF[0-9]\+\|\bConvertUTF\bisLegalUTF\|getNumBytesFor' | cut -f 1 -d '/' | sort | uniq clang lld lldb llvm Tested with ninja lldb ninja check-clang check-llvm check-lld (ninja check-lldb doesn't complete for me with or without this patch.) Reviewers: rnk Subscribers: klimek, beanz, mgorny, llvm-commits Differential Revision: https://reviews.llvm.org/D24996 llvm-svn: 282822
* [LV] Port the remarks in processLoop to the new streaming APIAdam Nemet2016-09-301-22/+39
| | | | | | This completes LV. llvm-svn: 282821
* [LV] Port the last opt remark in Hints to the new streaming interfaceAdam Nemet2016-09-301-5/+6
| | | | llvm-svn: 282820
* [X86] Don't preserve Win64 SSE CSRs when SSE is disabledReid Kleckner2016-09-303-2/+39
| | | | | | | | | Code that doesn't use floating point and doesn't use SSE (kernel code) shouldn't save and restore SSE registers. Fixes PR30503 llvm-svn: 282819
* [AArch64][RegisterBankInfo] Use static mapping for 3-operands instrs.Quentin Colombet2016-09-301-0/+50
| | | | | | | | This uses a TableGen'ed like structure for all 3-operands instrs. The output of the RegBankSelect pass should be identical but the RegisterBankInfo will do less dynamic allocations. llvm-svn: 282817
* [AArch64][RegisterBankInfo] Add static value mapping for 3-op instrs.Quentin Colombet2016-09-302-12/+58
| | | | | | | This is the kind of input TableGen should generate at some point. NFC. llvm-svn: 282816
* [AArch64][RegisterBankInfo] Check the statically created ValueMapping.Quentin Colombet2016-09-301-0/+18
| | | | | | | | | Make sure that the ValueMappings contain the value we expect at the indices we expect. NFC. llvm-svn: 282815
* [LAA, LV] Port to new streaming interface for opt remarks. Update LVAdam Nemet2016-09-304-30/+78
| | | | | | | | | | | | | | (Recommit after making sure IsVerbose gets properly initialized in DiagnosticInfoOptimizationBase. See previous commit that takes care of this.) OptimizationRemarkAnalysis directly takes the role of the report that is generated by LAA. Then we need the magic to be able to turn an LAA remark into an LV remark. This is done via a new OptimizationRemark ctor. llvm-svn: 282813
* [Diag] Use non-static member initializer for IsVerbose. NFCAdam Nemet2016-09-301-4/+3
| | | | llvm-svn: 282812
* Revert "Add llvm::enumerate() to STLExtras."Zachary Turner2016-09-292-116/+0
| | | | | | | This reverts commit r282804 as it seems to use some C++ features that not all compilers support. llvm-svn: 282809
* Add llvm::enumerate() to STLExtras.Zachary Turner2016-09-292-0/+116
| | | | | | | | | enumerate allows you to iterate over a range by pairing the iterator's value with its index in the enumeration. This gives you most of the benefits of using a for loop while still allowing the range syntax. llvm-svn: 282804
* [InstCombine] fix function names; NFCSanjay Patel2016-09-292-44/+48
| | | | | | | | Also, make foldSelectExtConst() a member of InstCombiner, remove unnecessary parameters from its interface, and group visitSelectInst helpers together in the header file. llvm-svn: 282796
* GC HAVE_STRDUP.Joerg Sonnenberger2016-09-291-3/+0
| | | | llvm-svn: 282793
* GC more left-over libtool defines.Joerg Sonnenberger2016-09-291-10/+0
| | | | llvm-svn: 282791
* GC HAVE_PRINTF_A, HAVE_STD_ISINF_IN_CMATH and HAVE_STD_ISNAN_IN_CMATHJoerg Sonnenberger2016-09-291-9/+0
| | | | llvm-svn: 282789
* HAVE_DIA_SDK is directly checked by value, so define it as 0/1.Joerg Sonnenberger2016-09-291-1/+1
| | | | llvm-svn: 282788
* Move _chsize_s and _Unwind_Backtrace to the correct position.Joerg Sonnenberger2016-09-291-6/+6
| | | | llvm-svn: 282786
* Fix HAVE_POSIX_FALLOCATE entry.Joerg Sonnenberger2016-09-291-2/+3
| | | | llvm-svn: 282785
* Fix comments to match autoconf.Joerg Sonnenberger2016-09-291-3/+3
| | | | llvm-svn: 282784
* GC HAVE_DLD.Joerg Sonnenberger2016-09-291-3/+0
| | | | llvm-svn: 282783
* GC HAVE_DYLD, HAVE_PRELOADED_SYMBOLS and HAVE_SHL_LOADJoerg Sonnenberger2016-09-291-9/+0
| | | | llvm-svn: 282782
* Sort mallctl, fix comment for mallinfo.Joerg Sonnenberger2016-09-291-4/+4
| | | | llvm-svn: 282781
* GC HAVE_DLERROR.Joerg Sonnenberger2016-09-292-4/+0
| | | | llvm-svn: 282780
* GC srand48/lrand48/drand48.Joerg Sonnenberger2016-09-292-13/+0
| | | | llvm-svn: 282779
* GC HAVE_BCOPY.Joerg Sonnenberger2016-09-291-3/+0
| | | | llvm-svn: 282778
* GC opendir/readdir/closedir checks.Joerg Sonnenberger2016-09-292-12/+0
| | | | llvm-svn: 282776
* GC HAVE_SETJMP_H and checks for the content of setjmp.h.Joerg Sonnenberger2016-09-292-18/+0
| | | | llvm-svn: 282775
* Sort futimes correctly.Joerg Sonnenberger2016-09-291-3/+3
| | | | llvm-svn: 282773
* Check for sysconf(3).Joerg Sonnenberger2016-09-292-1/+2
| | | | llvm-svn: 282772
* GC HAVE_MACH_O_DYLD_H.Joerg Sonnenberger2016-09-292-4/+0
| | | | llvm-svn: 282771
* GC HAVE_UTIME_H.Joerg Sonnenberger2016-09-292-4/+0
| | | | llvm-svn: 282770
* GC HAVE_LIMITS_H.Joerg Sonnenberger2016-09-292-4/+0
| | | | llvm-svn: 282769
* Make HAVE_DECL_ARC4RANDOM always defined. Sort the entry correctly.Joerg Sonnenberger2016-09-292-5/+6
| | | | llvm-svn: 282768
OpenPOWER on IntegriCloud