summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [ValueTracking] Use a function_ref to avoid multiple instantiationsDavid Majnemer2016-08-231-5/+5
| | | | | | | No functional change intended, this should just be a code size improvement. llvm-svn: 279563
* [SLP] Avoid signed integer overflowMatthew Simpson2016-08-232-9/+39
| | | | | | | | | | | | | | | | | | | The test case included with r279125 exposed an existing signed integer overflow. Since getTreeCost can return INT_MAX, we can't sum this cost together with other costs, such as getReductionCost. This patch removes the possibility of assigning a cost of INT_MAX. Since we were previously using INT_MAX as an indicator for "should not vectorize", we now explicitly check this condition with "isTreeTinyAndNotFullyVectorizable" before computing a cost. This patch adds a run-line to the test case used for r279125 that ensures we don't vectorize. Previously, this line would vectorize the test case by chance due to undefined behavior in the cost calculation. Differential Revision: https://reviews.llvm.org/D23723 llvm-svn: 279562
* Remove unused translation unit.Zachary Turner2016-08-232-14/+0
| | | | llvm-svn: 279561
* Update coding standards for include style.Zachary Turner2016-08-231-1/+11
| | | | | | | Reviewed By: lattner Differential Revision: https://reviews.llvm.org/D23591 llvm-svn: 279560
* driver: Support checking for rlimits via cmake (when bootstrapping)Chris Bieneman2016-08-233-5/+9
| | | | | | | | | | | | | | | | | Summary: Add a cmake check for sys/resource.h and replace the __has_include() check with its result, in order to make it possible to use rlimits when building with compilers not supporting __has_include() -- i.e. when bootstrapping. // Please also re-apply dfcd52eb1d8e5d322404b40414cb7331c7380a8c (llvm-config.h fix) Patch by: Michał Górny Reviewers: rsmith, beanz Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D23744 llvm-svn: 279559
* Remove two dos line endings.Nico Weber2016-08-231-2/+2
| | | | llvm-svn: 279558
* Fix regression introduced by r279164: only pass definitions as the PatternDefRichard Smith2016-08-237-64/+67
| | | | | | | | | | | | | | | | | | | | | | | | | to DiagnoseUninstantiableTemplate, teach hasVisibleDefinition to correctly determine whether a function definition is visible, and mark both the function and the template as visible when merging function template definitions to provide hasVisibleDefinition with the relevant information. The change to always pass the right declaration as the PatternDef to DiagnoseUninstantiableTemplate also caused those checks to happen before other diagnostics in InstantiateFunctionDefinition, giving worse diagnostics for the same situations, so I sunk the relevant diagnostics into DiagnoseUninstantiableTemplate. Those parts of this patch are based on changes in reviews.llvm.org/D23492 by Vassil Vassilev. This reinstates r279486, reverted in r279500, with a fix to DiagnoseUninstantiableTemplate to only mark uninstantiable explicit instantiation declarations as invalid if we actually diagnosed them. (When we trigger an explicit instantiation of a class member from an explicit instantiation declaration for the class, it's OK if there is no corresponding definition and we certainly don't want to mark the member invalid in that case.) This previously caused a build failure during bootstrap. llvm-svn: 279557
* [LTO] Fix test following r279550Mehdi Amini2016-08-231-1/+1
| | | | | | | The output name changed, but it was passing locally using the old output still present in the build dir. llvm-svn: 279556
* clang-cl: Make /Brepro actually work.Nico Weber2016-08-232-4/+4
| | | | | | | | | /Brepro means we want reproducible builds, i.e. we _don't_ want the timestamp that's needed to be compatible with the incremental linker. https://reviews.llvm.org/D23805 llvm-svn: 279555
* GlobalISel: extend legalizer interface to handle multiple types.Tim Northover2016-08-236-84/+171
| | | | | | | | Instructions like G_ICMP have multiple types that may need to be legalized (the boolean output and nearly arbitrary inputs in this case). So the legalizer must be capable of deciding what to do for each of them separately. llvm-svn: 279554
* GlobalISel: mark pointer casts legal on AArch64.Tim Northover2016-08-232-0/+32
| | | | llvm-svn: 279553
* libcxx: Fix libcxx tests on aarch64 with libunwindAdhemerval Zanella2016-08-231-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Some tests uses 'long double' to/from conversions and for some targets they are provided by compiler runtime (either compiler-rt or libgcc). However when building libcxx with linunwinder current test configuration at target_info.py do not include the required libraries, as: not llvm_unwinder: "-lc++" "-lm" "-lgcc_s" "-lgcc" "-lpthread" "-lc" "-lgcc_s" "-lgcc" llvm_unwinder "-lc++" "-lm" "-lpthread" "-lc" "-lunwind" "-ldl" This causes some tests build issues with missing symbols on aarch64, for instance, where 'long double' is a binary float with 128-bits with mostly of internal operations being provided by software routines. This patch changes how to define the default linker flags with libunwinder by adding libgcc regardless. I checked and aarch64 and x86_64 with libcxx and libunwind (with and without LIBCXXABI_USE_LLVM_UNWINDER). llvm-svn: 279552
* [ThinLTO] Add a llvm-lto2 test to check that ODR type uniquing is enabled (NFC)Mehdi Amini2016-08-232-0/+45
| | | | | | | | This adds a test for r279532, thanks David Li for noticing :) Recommit r279545 after committing first a dependent patch. llvm-svn: 279551
* Stop always creating and running an LTO compilation if there is not a single ↵Mehdi Amini2016-08-232-22/+14
| | | | | | | | | | | | | | | | | | | | LTO object Summary: I assume there was a use case, so maybe this strawman patch will help clarifying if it is legit. In any case the current situation is not legit: a ThinLTO compilation should not trigger an unexpected full LTO compilation. Right now, adding a --save-temps option triggers this and makes the number of output differs. Reviewers: tejohnson Subscribers: pcc, llvm-commits, mehdi_amini Differential Revision: https://reviews.llvm.org/D23600 llvm-svn: 279550
* Revert "[ThinLTO] Add a llvm-lto2 test to check that ODR type uniquing is ↵Mehdi Amini2016-08-232-45/+0
| | | | | | | | enabled (NFC)" This reverts commit r279545, test is failing, my Output dir was dirty and making the test pass. llvm-svn: 279549
* GlobalISel: legalize 1-bit load/store and mark 8/16 bit variants legal on ↵Tim Northover2016-08-233-7/+113
| | | | | | AArch64. llvm-svn: 279548
* [asan] minor fix in the asan memory profileKostya Serebryany2016-08-233-1/+5
| | | | llvm-svn: 279547
* ARM-Darwin: ignore and diagnose attempts to omit frame pointer.Tim Northover2016-08-234-6/+55
| | | | | | | | | | iOS (and other 32-bit ARM variants) always require a valid frame pointer to improve backtraces. Previously the -fomit-frame-pointer and -momit-leaf-frame-pointer options were being silently discarded via hacks in the backend. It's better if Clang configures itself to emit the correct IR and warns about (ignored) attempts to override this. llvm-svn: 279546
* [ThinLTO] Add a llvm-lto2 test to check that ODR type uniquing is enabled (NFC)Mehdi Amini2016-08-232-0/+45
| | | | | | This adds a test for r279532, thanks David Li for noticing :) llvm-svn: 279545
* [CMake] [OCaml] Add -DLLVM_ENABLE_OCAMLDOC switchPeter Zotov2016-08-232-1/+2
| | | | | | Patch by Michael Gorny. llvm-svn: 279544
* [InstSimplify] allow icmp with constant folds for splat vectors, part 2Sanjay Patel2016-08-232-143/+97
| | | | | | | | | | | | Completes the m_APInt changes for simplifyICmpWithConstant(). Other commits in this series: https://reviews.llvm.org/rL279492 https://reviews.llvm.org/rL279530 https://reviews.llvm.org/rL279534 https://reviews.llvm.org/rL279538 llvm-svn: 279543
* Possible fix of test failures on win bots Xinliang David Li2016-08-231-3/+3
| | | | llvm-svn: 279542
* [Documentation] Fix style of Clang-tidy readability-non-const-parameter.Eugene Zelenko2016-08-231-7/+9
| | | | llvm-svn: 279541
* Implementation "step out" plans shouldn't gather the return value.Jim Ingham2016-08-233-16/+26
| | | | | | | | | | When, for instance, "step-in" steps into a function that it doesn't want to stop in (e.g. has no debug info) it will push a step-out plan to implement the step out so it can then continue stepping. These step out's don't use the result of the function stepped out of, so they shouldn't spend the time to compute it. llvm-svn: 279540
* Delete remaining compiler-rt makefilesChris Bieneman2016-08-2328-2238/+0
| | | | | | | | | | | | | | | Summary: Since we can now build the builtins without a full toolchain these files should no longer be needed. This is the last vestige of autoconf! Reviewers: compnerd, iains, jroelofs Subscribers: dberris, llvm-commits Differential Revision: https://reviews.llvm.org/D23777 llvm-svn: 279539
* [InstSimplify] allow icmp with constant folds for splat vectors, part 1Sanjay Patel2016-08-232-10/+12
| | | | llvm-svn: 279538
* [SelectionDAG] Use a union of bitfield structs for SDNode::SubclassData.Justin Lebar2016-08-233-98/+140
| | | | | | | | | | | | | | | | | | Summary: This greatly simplifies our handling of SDNode::SubclassData. NFC, hopefully. :) See discussion in D23035 for discussion about the design API of these bitfields. Reviewers: chandlerc Subscribers: llvm-commits, rnk Differential Revision: https://reviews.llvm.org/D23036 llvm-svn: 279537
* [CodeGen] Convert a loop to a for-each loop. NFCJustin Lebar2016-08-231-7/+5
| | | | llvm-svn: 279536
* Fix some Clang-tidy modernize-use-using and Include What You Use warnings; ↵Eugene Zelenko2016-08-2313-93/+156
| | | | | | | | other minor fixes. Differential revision: https://reviews.llvm.org/D23789 llvm-svn: 279535
* [InstSimplify] add tests to show missing vector icmp foldsSanjay Patel2016-08-231-0/+238
| | | | llvm-svn: 279534
* Change the PathMappingList::FindFile to use FileSpec API'sJim Ingham2016-08-233-8/+14
| | | | | | Also, when appending path components, collapse multiple "/" into one at the join. llvm-svn: 279533
* [ThinLTO] Make sure the Context used for the ThinLTO backend has all the ↵Mehdi Amini2016-08-232-1/+3
| | | | | | | | | | | | | appropriate options An important performance setting on the LLVMContext for LTO is enableDebugTypeODRUniquing(), this adds an automatic merging of debug information in the context based on type ids. Also, the lto::Config includes a diagnostic handler that needs to be set on the Context, as well as the setDiscardValueNames() setting. llvm-svn: 279532
* clang-cl: Accept MSVC 2015's `/source-charset:utf-8` flag.Nico Weber2016-08-233-1/+8
| | | | | | | | | | | | | clang already treats all inputs as utf-8. Warn if anything but utf-8 is passed. Do this by mapping source-charset to finput-charset, which already behaves like this. Slightly tweak finput-charset to accept "utf-8" case-insensitively. This matches gcc's and cl.exe's behavior, and IANA says that character set names are case-insensitive. https://reviews.llvm.org/D23807 llvm-svn: 279531
* [InstSimplify] move icmp with constant tests to another file; NFCSanjay Patel2016-08-232-165/+222
| | | | | | | | | | | ...because like the corresponding code, this is just too big to keep adding to. And the next step is to add a vector version of each of these tests to show missed folds. Also, auto-generate CHECK lines and add comments for the tests that correspond to the source code. llvm-svn: 279530
* [analyzer] Fix CloneDetector crash on calling methods of class templates.Artem Dergachev2016-08-232-4/+15
| | | | | | | | | | | | | | If a call expression represents a method call of a class template, and the method itself isn't templated, then the method may be considered to be a template instantiation without template specialization arguments. No longer crash when we could not find template specialization arguments. Patch by Raphael Isemann! Differential Revision: https://reviews.llvm.org/D23780 llvm-svn: 279529
* Fix some more asserts after r279466.Pete Cooper2016-08-233-3/+3
| | | | | | | | | | | | | | | | That commit added a new version of Intrinsic::getName which should only be called when the intrinsic has no overloaded types. There are several debugging paths, such as SDNode::dump which are printing the name of the intrinsic but don't have the overloaded types. These paths should be ok to just print the name instead of crashing. The fix here is ultimately to just add a 'None' second argument as that calls the overload capable getName, which is less efficient, but this is a debugging path anyway, and not perf critical. Thanks to Björn Pettersson for pointing out that there were more crashes. llvm-svn: 279528
* [X86][SSE] Demonstrate inability to recognise that (v)cvtpd2dq & ↵Simon Pilgrim2016-08-231-0/+38
| | | | | | (v)cvttpd2dq intrinsics implicitly zeroes the upper half of the xmm llvm-svn: 279527
* [Hexagon] Packetize return value setup with the return instructionKrzysztof Parzyszek2016-08-232-3/+41
| | | | | | Commit r279241 unintentionally reverted that ability. llvm-svn: 279526
* Fix windows build failureXinliang David Li2016-08-231-1/+2
| | | | llvm-svn: 279525
* Rename unittests/ADT/ilistTest.cpp to ilistTestTemp.cpp (temporarily)Duncan P. N. Exon Smith2016-08-232-2/+5
| | | | | | | | | | | | I'll rename this to IListTest.cpp after a waiting period (tonight? tomorrow?), with a full explanation in that commit. First, I'm moving it aside because Git doesn't play well with case-only filename changes on case-insensitive file systems (and I suspect the same is true of SVN). This two-stage change should help to avoid spurious failures on bots that don't do clean checkouts. llvm-svn: 279524
* [Profile] refactor meta data copying/swapping codeXinliang David Li2016-08-234-57/+62
| | | | | | Differential Revision: http://reviews.llvm.org/D23619 llvm-svn: 279523
* Work around PR29097 to get the module bots going again.Adrian Prantl2016-08-231-2/+2
| | | | | | This replaces an =default constructor with an explicit definition. llvm-svn: 279522
* [X86][AVX] Updated fptosi_2f64_to_4i32 test to show missed opportunity to ↵Simon Pilgrim2016-08-231-2/+6
| | | | | | implicit zero the upper elements llvm-svn: 279521
* [X86][AVX] Add v2i32 fp to int conversion testsSimon Pilgrim2016-08-231-5/+80
| | | | llvm-svn: 279520
* [clang-tidy] Merge ExtraArgs(Before) instead of overriding them.Alexander Kornienko2016-08-232-24/+63
| | | | | | Added proper tests. llvm-svn: 279519
* [X86][AVX] Add AVX2/AVX512 fp to int conversion testsSimon Pilgrim2016-08-231-351/+924
| | | | llvm-svn: 279518
* [lanai] Use const instead of constexprJacques Pienaar2016-08-231-2/+2
| | | | | | The windows build bot did not like constexpr. llvm-svn: 279517
* [clang-tidy] Fix the order of ExtraArgsBeforeAlexander Kornienko2016-08-233-4/+30
| | | | | | Added tests for the relative order of -extra-arg(-before) and ExtraArgs(Before). llvm-svn: 279516
* Fix SystemZ hang caused by r279105Elliot Colp2016-08-232-29/+55
| | | | | | | | | The change in r279105 causes an infinite loop in some cases, as it sets the upper bits of an AND mask constant, which DAGCombiner::SimplifyDemandedBits then unsets. This patch reverts that part of the behaviour, instead relying on .td peepholes to perform the transformation to NILL. I reapplied my original fix for the problem addressed by r279105 (unsetting the upper bits, which prevents a compiler abort for a different reason). Differential Revision: https://reviews.llvm.org/D23781 llvm-svn: 279515
* [LTOCodeGenerator] Reduce code duplication. NFCI.Davide Italiano2016-08-232-8/+9
| | | | llvm-svn: 279514
OpenPOWER on IntegriCloud