summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [AMDGPU] Implement register pressure callbacksStanislav Mekhanoshin2017-02-082-0/+37
| | | | | | | | | | | | | | | | | | | Implement getRegPressureLimit and getRegPressureSetLimit callbacks in SIRegisterInfo. This makes standard converge scheduler to behave almost the same as GCNScheduler, sometime slightly better sometimes a bit worse. In gerenal that is also possible to switch GCNScheduler to use these callbacks instead of getMaxWaves(), which also makes GCNScheduler slightly better on some tests and slightly worse on another. A big win is behavior with converge scheduler. Note, these are used not only by scheduling, but in places like MachineLICM. Differential Revision: https://reviews.llvm.org/D29700 llvm-svn: 294518
* [sancov] specifying comdat for sancov constructorsMike Aizatsky2017-02-082-2/+16
| | | | | | Differential Revision: https://reviews.llvm.org/D29662 llvm-svn: 294517
* Take code ownership of LLVM bitcode.Peter Collingbourne2017-02-081-5/+1
| | | | llvm-svn: 294516
* [CMake] Final dependency cleanup patch!Chris Bieneman2017-02-089-335/+38
| | | | | | | | | | | | | | | | | Summary: This patch removes the over-specified dependencies from LLDBDependencies and instead relies on the dependencies as expressed in each library and tool. This also removes the library looping in favor of allowing CMake to do its thing. I've tested this patch on Darwin, and found no issues, but since linker semantics vary by system I'll also work on testing it on other platforms too. Help testing would be greatly appreciated. Reviewers: labath, zturner Subscribers: danalbert, srhines, mgorny, jgosnell, lldb-commits Differential Revision: https://reviews.llvm.org/D29352 llvm-svn: 294515
* [CMake] Fix `is_llvm_target_library` and support out-of-order componentsChris Bieneman2017-02-082-11/+79
| | | | | | | | | | | | Summary: This patch is required by D28855, and enables us to rely on CMake's ability to handle out of order target dependencies. Reviewers: mgorny, chapuni, bryant Subscribers: llvm-commits, jgosnell Differential Revision: https://reviews.llvm.org/D28869 llvm-svn: 294514
* build_llvm_package.bat: Build teh clang-format plugin separatelyHans Wennborg2017-02-081-1/+11
| | | | | | | | | | | In r293373 we switched the build to linking dynamically against the Universal CRT and include the redistributables in the installer. However, clang-format.exe is copied into the vsix and needs to be statically linked. This commit makes us build the plugin in a separate step that uses static linking. llvm-svn: 294513
* Initialize builtins during modular codegenDavid Blaikie2017-02-089-68/+86
| | | | llvm-svn: 294512
* ThinLTOBitcodeWriter: Strip debug info from merged module.Peter Collingbourne2017-02-082-0/+9
| | | | | | | | | | This module will contain nothing but vtable definitions and (soon) available_externally function definitions, so there is no point in keeping debug info in the module. Differential Revision: https://reviews.llvm.org/D28913 llvm-svn: 294511
* build: repair cross-compilation with clangSaleem Abdulrasool2017-02-082-4/+4
| | | | | | | | | | | | When building for Windows, we would check if we were using MSVC rather than WIN32. This resulted in needed targets not being defined by sanitizer_common. Fix the conditional. When registering the objects libraries for ASAN, we would multiply register for all targets as we were creating them inside a loop over all architectures. Only define the target per architecture. llvm-svn: 294510
* More fixes for places where 'decltype(auto)' is permitted in the C++ grammar ↵Richard Smith2017-02-086-22/+55
| | | | | | but makes no sense. llvm-svn: 294509
* [test] Fix zlib cond when building stand-alone, clean upMichal Gorny2017-02-083-9/+14
| | | | | | | | | | | | | | | Fix the test zlib conditional to use LLVM_ENABLE_ZLIB value when building stand-alone. The HAVE_LIBZ is not available when performing a stand-alone build. Since the zlib support is a feature of the underlying LLVM library, it exports the actual status as the final value of LLVM_ENABLE_ZLIB in LLVMConfig. While at it, canonicalize the boolean value into 0/1 and remove unused CMake definitions (most likely copied from clang). Differential Revision: https://reviews.llvm.org/D29340 llvm-svn: 294508
* [test] Use LLD-specific binary&library dirs when building stand-aloneMichal Gorny2017-02-082-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use both LLD- and LLVM-specific binary&library directories when LLD is being built stand-alone. This ensures that the freshly built tools and libraries are found and used correctly. Without this patch, the test suite uses LLVM_TOOLS_DIR and LLVM_LIBS_DIR to locate lld, and set PATH and LD_LIBRARY_PATH. When doing a stand-alone builds, these variables represent the installed LLVM. As a result, tests either fail due to missing lld executables/libraries or use an earlier installed LLD version rather than the one being built. To solve this, an additional LLD_TOOLS_DIR and LLD_LIBS_DIR variables are added that are populated using LLVM_*_OUTPUT_INTDIR. Those variables are populated with directories used to output built executables and libraries. In stand-alone builds, they represent the directories used by LLD. In integrated builds, they have the same values as LLVM_*_DIR and therefore using them does not harm. The new variables are prepended to PATH and LD_LIBRARY_PATH to ensure that freshly built binaries are preferred over potentially earlier installed ones. Furthermore, the resulting PATH is used to locate tools for substitutions since the search includes both tools built as part of LLD and of LLVM. Differential Revision: https://reviews.llvm.org/D29335 llvm-svn: 294507
* Don't crash on 'decltype(auto)::'. Rather than treating it as a meaninglessRichard Smith2017-02-082-1/+16
| | | | | | | | nested-name-specifier (as the standard appears to require), treat it as the type specifier 'decltype(auto)' followed by a nested-name-specifier starting with '::'. llvm-svn: 294506
* [SLP] Additional test to check correct work of horizontal reductions,Alexey Bataev2017-02-081-0/+576
| | | | | | NFC. llvm-svn: 294505
* [Lit Test] Make tests C++11 compatible - Parse OpenMPCharles Li2017-02-082-5/+37
| | | | | | Differential Revision: https://reviews.llvm.org/D29725 llvm-svn: 294504
* [Loop Vectorizer] Cost-based decision for vectorization form of memory ↵Elena Demikhovsky2017-02-084-270/+566
| | | | | | | | | | | | | | | | | | instruction. Making the cost model selecting between Interleave, GatherScatter or Scalar vectorization form of memory instruction. The right decision should be done for non-consecutive memory access instrcuctions that may have more than one vectorization solution. This patch includes the following changes: - Cost Model calculates the cost of Load/Store vector form and choose the better option between Widening, Interleave, GatherScactter and Scalarization. Cost Model keeps the widening decision. - Arrays of Uniform and Scalar values are moved from Legality to Cost Model. - Cost Model collects Uniforms and Scalars per VF. The collection is based on CM decision map of Loadis/Stores vectorization form. - Vectorization of memory instruction is performed according to the CM decision. Differential Revision: https://reviews.llvm.org/D27919 llvm-svn: 294503
* Attempt to fix lld-x86_64-win7 bot.Rui Ueyama2017-02-081-2/+2
| | | | | | | | | The test is failing on the bot because "/subsystem:console" was truncated for some reason. I don't know why that is happening on that machine (it is not reproducible on my Windows machine). In this patch, I'm trying to tame it by making the output shorter. llvm-svn: 294502
* Update info for LWG 2665 in upcoming_meeting.htmlEric Fiselier2017-02-081-3/+3
| | | | llvm-svn: 294501
* [DebugInfo] Rename EmitDebugValue to EmitDebugThreadLocal (NFC)Simon Dardis2017-02-085-5/+5
| | | | | | | As pointed out by David Blaikie in the post commit review of r292624, EmitDebugValue should be called EmitDebugThreadLocal. llvm-svn: 294500
* [X86][SSE] Regenerate scalar integer conversions to float testsSimon Pilgrim2017-02-081-100/+661
| | | | llvm-svn: 294499
* [COFF] added support for /lldsavetempsBob Haarman2017-02-085-3/+54
| | | | | | | | | | | | | | Summary: This adds an option to save temporary files generated during link-time optimization. This can be useful for debugging. Reviewers: ruiu, pcc Reviewed By: ruiu, pcc Subscribers: mehdi_amini Differential Revision: https://reviews.llvm.org/D29518 llvm-svn: 294498
* [sanitizer] if WINAPI is already defined, do not redefine itBob Haarman2017-02-081-0/+2
| | | | | | | | | | | | | | Summary: lib/sanitizer_common/sanitizer_win_defs.h defineds WINAPI, which is also defined by standard Windows headers. Redefining it causes warnings during compilation. This change causes us to only define WINAPI if it is not already defined, which avoids the warnings. Reviewers: rnk, zturner, mpividori Reviewed By: rnk, mpividori Subscribers: kubamracek Differential Revision: https://reviews.llvm.org/D29683 llvm-svn: 294497
* Fix inline-asm-diags.ll on Windows, give it a triple to avoid WoA thumb ↵Reid Kleckner2017-02-081-1/+1
| | | | | | confusion llvm-svn: 294496
* llvm-objdump: make NoLeadingAddr work on more than just MachOSaleem Abdulrasool2017-02-083-6/+9
| | | | | | | | | Support printing the disassembly without the address on all formats rather than making it MachO specific. Patch by Jeff Muizelaar! llvm-svn: 294495
* [DAGCombiner] NFC. Mark ByteProvider accessors as constArtur Pilipenko2017-02-081-2/+2
| | | | llvm-svn: 294494
* GlobalISel: select G_VASTART on iOS AArch64.Tim Northover2017-02-085-1/+83
| | | | | | | The AAPCS ABI is substantially more complicated so that's coming in a separate patch. For now we can generate correct code for iOS though. llvm-svn: 294493
* GlobalISel: translate @llvm.va_start intrinsic.Tim Northover2017-02-087-0/+50
| | | | | | | Because we need to preserve the memory access being performed we need a separate instruction to represent this. llvm-svn: 294492
* [clang-tidy] Add -extra-arg and -extra-arg-before to clang-tidy-diff.pyEhsan Akhgari2017-02-081-0/+12
| | | | | | | | | | | | | | Summary: These flags allow specifying extra arguments to the tool's command line which don't appear in the compilation database. Reviewers: alexfh, klimek, bkramer Subscribers: JDevlieghere, cfe-commits Differential Revision: https://reviews.llvm.org/D29699 llvm-svn: 294491
* NVPTX: Extract mem intrinsic expansions into utilitiesMatt Arsenault2017-02-084-213/+287
| | | | llvm-svn: 294490
* [Reassociate] Remove an unused argument. NFC.Chad Rosier2017-02-081-5/+4
| | | | llvm-svn: 294489
* Fix bitcode upgrade for DIGlobalVariables with a var: field.Adrian Prantl2017-02-083-2/+32
| | | | | | | | | | | | | | | This is a follow-up to https://reviews.llvm.org/D29349. It turns out that NeedUpgradeToDIGlobalVariableExpression is always necessary when we encountered a version==0 record because it may always be referenced via a list of globals in a DICompileUnit. My tests weren't good enough to catch this though. To trigger this case, we need much older bitcode produced by LLVM around version 3.7. <rdar://problem/30404262> Differential Revision: https://reviews.llvm.org/D29693 llvm-svn: 294488
* [InstCombine] add test for missed vector icmp fold; NFCSanjay Patel2017-02-082-10/+23
| | | | | | | Also, move the related existing scalar test to a renamed file where I'm planning to add more icmp-add tests. llvm-svn: 294487
* Move inline asm diags tests to an ARM directory.Sanne Wouda2017-02-081-1/+1
| | | | | | | The assembler syntaxes (and parsers) differ too much to expect this test to pass for all of them. llvm-svn: 294475
* [Hexagon] Fix decoding conflict between A2_zxtb and A4_extKrzysztof Parzyszek2017-02-082-1/+3
| | | | llvm-svn: 294472
* [mips] MUL macro variationsSimon Dardis2017-02-084-3/+179
| | | | | | | | | | | | | | [mips] MUL macro variations Adds support for MUL macro variations. Patch by: Srdjan Obucina Reviewers: zoran.jovanovic, vkalintiris, dsanders, sdardis, obucina, seanbruno Differential Revision: https://reviews.llvm.org/D16807 llvm-svn: 294471
* [InstCombine] add local name for repeated calls; NFC Sanjay Patel2017-02-081-6/+4
| | | | llvm-svn: 294470
* Recommit r294464 "[ELF] - Added partial support for --emit-relocs (no ↵George Rimar2017-02-088-8/+134
| | | | | | | | | | | | | | | | | | | | | | --gc-section case, no /DISCARD/ support) #3" with temporarily file name fix in testcase. Original commit message: -q, --emit-relocs - Generate relocations in output Simplest implementation: * no GC case, * no "/DISCARD/" linkerscript command support. This patch is extracted from D28612 / D29636, Relative to PR31579. Differential revision: https://reviews.llvm.org/D29663 llvm-svn: 294469
* Fix inline asm diagnostics test.Sanne Wouda2017-02-081-3/+3
| | | | | | | Don't depend on X86 everywhere. Fix the original problem with a reg-exp for the column number. llvm-svn: 294468
* [clang-tidy] hasErrorOccurred() -> hasUncompilableErrorOccurred()Alexander Kornienko2017-02-083-4/+18
| | | | | | | hasErrorOccurred() -> hasUncompilableErrorOccurred(), since we only care about errors that lead to invalid AST. llvm-svn: 294467
* Reverted r294464 "[ELF] - Added partial support for --emit-relocs (no ↵George Rimar2017-02-088-134/+8
| | | | | | | | | --gc-section case, no /DISCARD/ support) #3" Broked build bot: http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/builds/5835/steps/test/logs/stdio llvm-svn: 294466
* [MS] Fix C++ destructor thunk line info for a declarationReid Kleckner2017-02-082-1/+20
| | | | | | | | | | Sometimes the MS ABI needs to emit thunks for declarations that don't have bodies. Destructor thunks make calls to inlinable functions, so they need line info or LLVM will complain. Fixes PR31893 llvm-svn: 294465
* [ELF] - Added partial support for --emit-relocs (no --gc-section case, no ↵George Rimar2017-02-088-8/+134
| | | | | | | | | | | | | | | | | | /DISCARD/ support) #3 -q, --emit-relocs - Generate relocations in output Simplest implementation: * no GC case, * no "/DISCARD/" linkerscript command support. This patch is extracted from D28612 / D29636, Relative to PR31579. Differential revision: https://reviews.llvm.org/D29663 llvm-svn: 294464
* LVI: Add a per-value worklist limit to LazyValueInfo.Daniel Berlin2017-02-081-6/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: LVI is now depth first, which is optimal for iteration strategy in terms of work per call. However, the way the results get cached means it can still go very badly N^2 or worse right now. The overdefined cache is per-block, because LVI wants to try to get different results for the same name in different blocks (IE solve the problem PredicateInfo solves). This means even if we discover a value is overdefined after going very deep, it doesn't cache this information, causing it to end up trying to rediscover it again and again. The same is true for values along the way. In practice, overdefined anywhere should mean overdefined everywhere (this is how, for example, SCCP works). Until we get around to reworking the overdefined cache, we need to limit the worklist size we process. Note that permanently reverting the DFS strategy exploration seems the wrong strategy (temporarily seems fine if we really want). BFS is clearly the wrong approach, it just gets luckier on some testcases. It's also very hard to design an effective throttle for BFS. For DFS, the throttle is directly related to the depth of the CFG. So really deep CFGs will get cutoff, smaller ones will not. As the CFG simplifies, you get better results. In BFS, the limit is it's related to the fan-out times average block size, which is harder to reason about or make good choices for. Bug being filed about the overdefined cache, but it will require major surgery to fix it (plumbing predicateinfo through CVP or LVI). Note: I did not make this number configurable because i'm not sure anyone really needs to tweak this knob. We run CVP 3 times. On the testcases i have the slow ones happen in the middle, where CVP is doing cleanup work other things are effective at. Over the course of 3 runs, we don't see to have any real loss of performance. I haven't gotten a minimized testcase yet, but just imagine in your head a testcase where, going *up* the CFG, you have branches, one of which leads 50000 blocks deep, and the other, to something where the answer is overdefined immediately. BFS would discover the overdefined faster than DFS, but do more work to do so. In practice, the right answer is "once DFS discovers overdefined for a value, stop trying to get more info about that value" (and so, DFS would normally cache the overdefined results for every value it passed through in those 50k blocks, and never do that work again. But it don't, because of the naming problem) Reviewers: chandlerc, djasper Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D29715 llvm-svn: 294463
* [x86] add AVX512vl target for more coverage; NFCSanjay Patel2017-02-081-47/+122
| | | | llvm-svn: 294462
* [InstComobineCalls] Fix buildbot failures after r294453.Igor Laevsky2017-02-081-1/+1
| | | | | | | | Some targets don't support uint64_t options. Change type to unsigned. Differential Revision: https://reviews.llvm.org/D28909 llvm-svn: 294461
* Revert "Simplify symbol computation for non alloc sections."Rafael Espindola2017-02-082-4/+11
| | | | | | | This reverts commit r294346. Looks like it regressed the build of magenta. llvm-svn: 294460
* [clang-tidy] Supresses misc-move-constructor-init warning for const fields.Alexander Kornienko2017-02-082-0/+13
| | | | | | | | Patch by CJ DiMeglio! Differential revision: https://reviews.llvm.org/D28973 llvm-svn: 294459
* [Assembler] Enable nicer diagnostics for inline assembly.Sanne Wouda2017-02-087-43/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed test. Summary: Enables source location in diagnostic messages from the backend. This is after parsing, during finalization. This requires the SourceMgr, the inline assembly string buffer, and DiagInfo to still be alive after EmitInlineAsm returns. This patch creates a single SourceMgr for inline assembly inside the AsmPrinter. MCContext gets a pointer to this SourceMgr. Using one SourceMgr per call to EmitInlineAsm would make it difficult for MCContext to figure out in which SourceMgr the SMLoc is located, while a single SourceMgr can figure it out if it has multiple buffers. The Str argument to EmitInlineAsm is copied into a buffer and owned by the inline asm SourceMgr. This ensures that DiagHandlers won't print garbage. (Clang emits a "note: instantiated into assembly here", which refers to this string.) The AsmParser gets destroyed before finalization, which means that the DiagHandlers the AsmParser installs into the SourceMgr will be stale. Restore the saved DiagHandlers. Since now we're using just one SourceMgr for multiple inline asm strings, we need to tell the AsmParser which buffer it needs to parse currently. Hand a buffer id -- returned from SourceMgr:: AddNewSourceBuffer -- to the AsmParser. Reviewers: rnk, grosbach, compnerd, rengolin, rovka, anemet Reviewed By: rnk Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D29441 llvm-svn: 294458
* [clang-format] Move OriginalPrefix from base to subclass.Krasimir Georgiev2017-02-081-4/+8
| | | | | | | | | | | | | | | | Summary: OriginalPrefix is only needed for line comment sections. Moved from the base class to the child class. No functional changes. Reviewers: djasper Reviewed By: djasper Subscribers: cfe-commits, klimek Differential Revision: https://reviews.llvm.org/D29716 llvm-svn: 294457
* [X86][SSE] Tidyup LowerBuildVectorv16i8 and LowerBuildVectorv8i16. NFCI.Simon Pilgrim2017-02-081-20/+18
| | | | | | Run clang-format and standardized variable names between functions. llvm-svn: 294456
OpenPOWER on IntegriCloud