summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* math: fix typo in macroSaleem Abdulrasool2017-02-172-8/+8
| | | | | | MAJOR was misspelt as NAJOR. Fix the spelling. llvm-svn: 295510
* cmath: Use c99 math on a new enough msvcrtSaleem Abdulrasool2017-02-171-4/+4
| | | | | | | MSVCRT 14+ supports the C99 math routines that we need. Use them accordingly. llvm-svn: 295509
* [X86] Add MOVBE targets to load combine testsSimon Pilgrim2017-02-171-101/+165
| | | | | | Test folded endian swap tests with MOVBE instructions. llvm-svn: 295508
* [COFF] support /ERRORLIMIT optionBob Haarman2017-02-175-29/+92
| | | | | | | | | | | | Summary: This adds support for reporting multiple errors in a single invocation of lld-link. The limit defaults to 20 and can be changed with the /ERRORLIMIT command line parameter, or set to unlimited by passing a value of 0. Reviewers: pcc, ruiu Reviewed By: ruiu Differential Revision: https://reviews.llvm.org/D29691 llvm-svn: 295507
* [PPC] Give unaligned memory access lower cost on processor that supports itGuozhi Wei2017-02-173-1/+31
| | | | | | | | | | | | Newer ppc supports unaligned memory access, it reduces the cost of unaligned memory access significantly. This patch handles this case in PPCTTIImpl::getMemoryOpCost. This patch fixes pr31492. Differential Revision: https://reviews.llvm.org/D28630 This is resubmit of r292680, which was reverted by r293092. The internal application failures were actually caused by a source code bug. llvm-svn: 295506
* [CodeGen] Revert changes in LowLevelType to pre-r295499 to fix broken buildbots.Eugene Zelenko2017-02-172-35/+25
| | | | llvm-svn: 295505
* [Hexagon] Start using regmasks on callsKrzysztof Parzyszek2017-02-1720-119/+273
| | | | | | Reapply r295371 with a fix for the Windows bot failures. llvm-svn: 295504
* [NewGVN] isOnlyReachableViaThisEdge() is dead now. NFCI.Davide Italiano2017-02-171-18/+0
| | | | llvm-svn: 295503
* [X86] Simplify by pulling out valuetype. NFCI.Simon Pilgrim2017-02-171-2/+2
| | | | llvm-svn: 295502
* [CodeGen] Attempt to fix buildbots broken in r295499.Eugene Zelenko2017-02-171-1/+1
| | | | llvm-svn: 295501
* [NewGVN] createVariableOrConstant is not required anymore. NFCI.Davide Italiano2017-02-171-8/+0
| | | | llvm-svn: 295500
* [CodeGen] Fix some Clang-tidy modernize and Include What You Use warnings; ↵Eugene Zelenko2017-02-1712-127/+190
| | | | | | other minor fixes (NFC). llvm-svn: 295499
* Fix windows buildbots that don't have full shell supportSimon Pilgrim2017-02-171-0/+1
| | | | llvm-svn: 295498
* [OpenMP] Prepare Sema for initial implementation for pragma 'distribute ↵Carlo Bertolli2017-02-176-4/+129
| | | | | | | | | | | | | | | parallel for' https://reviews.llvm.org/D29922 This patch adds two fields for use in the implementation of 'distribute parallel for': The increment expression for the distribute loop. As the chunk assigned to a team is executed by multiple threads within the 'parallel for' region, the increment expression has to correspond to the value returned by the related runtime call (for_static_init). The upper bound of the innermost loop ('for' in 'distribute parallel for') is not the globalUB expression normally used for pragma 'for' when found in isolation. It is instead the upper bound of the chunk assigned to the team ('distribute' loop). In this way, we prevent teams from executing chunks assigned to other teams. The use of these two fields can be see in a related explanatory patch: https://reviews.llvm.org/D29508 llvm-svn: 295497
* [X86] Add subborrow stack folding testsSimon Pilgrim2017-02-171-0/+18
| | | | llvm-svn: 295496
* [x86] add tests for sext (not bool); NFCSanjay Patel2017-02-171-0/+72
| | | | llvm-svn: 295495
* Revert "Retry: [ubsan] Reduce null checking of C++ object pointers (PR27581)"Vedant Kumar2017-02-177-249/+30
| | | | | | | | This reverts commit r295401. It breaks the ubsan self-host. It inserts object size checks once per C++ method which fire when the structure is empty. llvm-svn: 295494
* [LAA] Remove unused code (NFC)Matthew Simpson2017-02-171-5/+0
| | | | llvm-svn: 295493
* [X86][SSE] Add (V)MOVD folding pattern with zextloadi64i32 load node.Simon Pilgrim2017-02-173-5/+9
| | | | | | Fixes PRPR31309 llvm-svn: 295492
* Add an explicit derived class of FunctionDecl to model deduction guides ratherRichard Smith2017-02-1720-87/+202
| | | | | | | | than just treating them as FunctionDecls with a funny name. No functionality change intended. llvm-svn: 295491
* Fix windows bots by locking down the target triple on this testcase.Adrian Prantl2017-02-171-1/+1
| | | | llvm-svn: 295490
* AMDGPU: Fix crashes on invalid icmp/fcmp intrinsicsMatt Arsenault2017-02-173-5/+26
| | | | llvm-svn: 295489
* [ELF] - Added support of linkerscript's "/DISCARD/" for --emit-relocsGeorge Rimar2017-02-173-2/+31
| | | | | | | | | | | | Previously LLD crashed on on provided testcases because "/DISCARD/" was not supported. Patch implements that. After this I think there is no known issues with --emit-relocs implementation required for linux kernel linking. Differential revision: https://reviews.llvm.org/D29273 llvm-svn: 295488
* WholeProgramDevirt: For VCP use a 32-bit ConstantInt for the byte offset.Peter Collingbourne2017-02-174-10/+10
| | | | | | | | | | | | | | | A future change will cause this byte offset to be inttoptr'd and then exported via an absolute symbol. On the importing end we will expect the symbol to be in range [0,2^32) so that it will fit into a 32-bit relocation. The problem is that on 64-bit architectures if the offset is negative it will not be in the correct range once we inttoptr it. This change causes us to use a 32-bit integer so that it can be inttoptr'd (which zero extends) into the correct range. Differential Revision: https://reviews.llvm.org/D30016 llvm-svn: 295487
* Debug Info: Sort frame index expressions before emitting them.Adrian Prantl2017-02-174-36/+129
| | | | | | | | | | This fixes PR31381, which caused an assertion and/or invalid debug info. This affects debug variables that have multiple fragments in the MMI side (i.e.: in the stack frame) table. rdar://problem/30571676 llvm-svn: 295486
* Fix --print-gc-sections with linker scripts.Rafael Espindola2017-02-172-2/+8
| | | | | | | | Before it would never print anything. Thanks to George Rimar for pointing it out. llvm-svn: 295485
* [Test] Make Lit tests C++11 compatible - miscCharles Li2017-02-175-18/+38
| | | | | | | | Updated 5 tests. Differential Revision: https://reviews.llvm.org/D24812 llvm-svn: 295484
* [ELF] - Move DependentSections vector from InputSection to InputSectionBaseGeorge Rimar2017-02-173-10/+5
| | | | | | | | | | | | | | | | I splitted it from D29273. Since we plan to make relocatable sections as dependent for target ones for --emit-relocs implementation, this change is required to support .eh_frame case. EhInputSection inherets from InputSectionBase and not from InputSection. So for case when it has relocation section, it should be able to access DependentSections vector. This case is real for Linux kernel. Differential revision: https://reviews.llvm.org/D30084 llvm-svn: 295483
* [clang-tidy] Add -path option to clang-tidy-diff.pyEhsan Akhgari2017-02-172-0/+7
| | | | | | | | | | | | | | | Summary: This flag allows specifying a custom path for the compilation database. Unfortunately we can't use the -p flag like other clang-tidy tools because it's already taken. Reviewers: alexfh Subscribers: JDevlieghere, cfe-commits Differential Revision: https://reviews.llvm.org/D29806 llvm-svn: 295482
* [CMake] Support externalizing debug info on non-Darwin platformsPetr Hosek2017-02-171-2/+10
| | | | | | | | On other platorms, we use objcopy to export the debug info. Differential Revision: https://reviews.llvm.org/D28575 llvm-svn: 295481
* [CMake] Add Fuchsia toolchain CMake cache filesPetr Hosek2017-02-172-0/+106
| | | | | | | | | These cache files can be used to build Fuchsia toolchain. They also demonstrate the use of multi-target builtins build. Differential Revision: https://reviews.llvm.org/D26654 llvm-svn: 295480
* [X86][SHA] Add SHA stack folding testsSimon Pilgrim2017-02-171-0/+72
| | | | llvm-svn: 295479
* In Thumb1 mode, the custom lowering for ARMISD::CMPZ could never emit tADDi3Artyom Skrobov2017-02-172-18/+16
| | | | | | | | | | | | Reviewers: jmolloy, t.p.northover Reviewed By: t.p.northover Subscribers: t.p.northover, aemerson, rengolin, llvm-commits Differential Revision: https://reviews.llvm.org/D30097 llvm-svn: 295478
* [X86][TBM] Add TBM stack folding testsSimon Pilgrim2017-02-171-0/+201
| | | | llvm-svn: 295477
* GlobalISel: verify that generic loads & stores have a mem operand.Tim Northover2017-02-175-20/+28
| | | | | | | The mem operand is used by GlobalISel to convey atomic constraints so dropping it is invalid. llvm-svn: 295476
* [AArch64] Add Cavium ThunderX supportJoel Jones2017-02-178-2/+5622
| | | | | | | | | | | | | | This set of patches adds support for Cavium ThunderX ARM64 processors: * ThunderX * ThunderX T81 * ThunderX T83 * ThunderX T88 Patch by Stefan Teleman Differential Revision: https://reviews.llvm.org/D28891 llvm-svn: 295475
* [OpenMP] Fix cancellation point in task with no cancelJonas Hahnfeld2017-02-172-1/+18
| | | | | | | | | With tasks, the cancel may happen in another task. This has a different region info which means that we can't find it here. Differential Revision: https://reviews.llvm.org/D30091 llvm-svn: 295474
* [OpenMP] Remove barriers at cancel and cancellation pointJonas Hahnfeld2017-02-173-26/+4
| | | | | | | | | | | | | | | | This resolves a deadlock with the cancel directive when there is no explicit cancellation point. In that case, the implicit barrier acts as cancellation point. After removing the barrier after cancel, the now unmatched barrier for the explicit cancellation point has to go as well. This has probably worked before rL255992: With the calls for the explicit barrier, it was sure that all threads passed a barrier before exiting. Reported by Simon Convent and Joachim Protze! Differential Revision: https://reviews.llvm.org/D30088 llvm-svn: 295473
* WholeProgramDevirt: Examine the function body when deciding whether ↵Peter Collingbourne2017-02-172-18/+81
| | | | | | | | | | functions are readnone. The goal is to get an analysis result even for de-refineable functions. Differential Revision: https://reviews.llvm.org/D29803 llvm-svn: 295472
* [Docs] 'Limitations' should be a subsectionAlex Lorenz2017-02-171-1/+1
| | | | | | | | The 'Limitations' section in thedocumentation for readability-misleading-indentation should be a subsection, as otherwise the link to 'Limitations' isn't indented in the 'Clang-Tidy Checks' documentation page. llvm-svn: 295471
* [X86][BMI] Add BMI2 stack folding testsSimon Pilgrim2017-02-171-0/+77
| | | | llvm-svn: 295470
* [PGO] remove unintended debug trace. NFCRong Xu2017-02-171-4/+1
| | | | llvm-svn: 295469
* opt: Rename -default-data-layout flag to -data-layout and make it always ↵Peter Collingbourne2017-02-1713-31/+27
| | | | | | | | | | override the layout. There isn't much point in a flag that only works if the data layout is empty. Differential Revision: https://reviews.llvm.org/D30014 llvm-svn: 295468
* Don't print DISCARD sections as gced.Rafael Espindola2017-02-175-16/+22
| | | | | | | | This is a small difference I noticed to gold and bfd. When given --print-gc-sections, we print sections a linkerscript marks DISCARD. The other linkers don't. llvm-svn: 295467
* Rename DiagnosticInfoWithDebugLoc to WithLocation to match LLVMJustin Bogner2017-02-171-3/+3
| | | | | | Updates for llvm r295465. llvm-svn: 295466
* OptDiag: Rename DiagnosticInfoWithDebugLoc to WithLocation. NFCJustin Bogner2017-02-172-10/+9
| | | | | | | This generalizes the name in preparation for decoupling the concept from DebugLoc. llvm-svn: 295465
* MC/COFF: Do not emit forward associative section referenceds.Rui Ueyama2017-02-174-34/+61
| | | | | | | | | | | | | | | | MSVC link.exe cannot handle associative sections that refer later sections in the section header. Technically, such COFF object doesn't violate the Microsoft COFF spec, as the spec doesn't say anything about that, but still we should avoid doing that to make it compatible with MS tools. This patch assigns smaller section numbers to non-associative sections and larger numbers to associative sections. This should resolve the compatibility issue. Differential Revision: https://reviews.llvm.org/D30080 llvm-svn: 295464
* [DAGCombiner] split i1 select-of-constants from non-i1 case; NFCISanjay Patel2017-02-171-9/+25
| | | | | | I can't find any tests of the non-i1 code path, so it may be unnecessary at this point. llvm-svn: 295463
* [X86][BMI] Add BMI stack folding testsSimon Pilgrim2017-02-171-0/+121
| | | | llvm-svn: 295462
* [stats] add stats-gathering for static_steal scheduling methodJonathan Peyton2017-02-172-0/+8
| | | | | | | | Add counter to count number of static_steal for loops Add counter for number of chunks executed per static_steal for loop Add counter for number of chunks stolen per static_steal for loop llvm-svn: 295461
OpenPOWER on IntegriCloud