- Oct 29, 2017
-
-
Peter Szecsi authored
Added new enum in order to differentiate the warning messages on "misusing" into 3 categories: function calls, moving an object, copying an object. (At the moment the checker gives the same message in case of copying and moving.) Additional test cases added as well. Differential Revision: https://reviews.llvm.org/D38674 llvm-svn: 316852
-
Craig Topper authored
This code attempted to say that v8i16/v16i16 VSELECT is legal if BWI and VLX are enabled, but the only way we could reach this point is if the condition was not a vXi1 type. Which means it really wasn't legal. We don't have any tests that exercise this code. So I'm hoping it wasn't really reachable. llvm-svn: 316851
-
Peter Szecsi authored
[analyzer] MisusedMovedObjectChecker: Fix false positive on state-resetting, handling method calls on base-class sub-objects An earlier solution from Artem r315301 solves the reset problem, however, the reports should be handled the same way in case of method calls. We should not just report the base class of the object where the method was defined but the whole object. Fixed false positive which came from not removing the subobjects in case of a state-resetting function. (Just replaced the State->remove(...) call to removeFromState(..) which was defined exactly for that purpose.) Some minor typos fixed in this patch as well which did not worth a whole new patch in my opinion, so included them here. Differential Revision: https://reviews.llvm.org/D31538 llvm-svn: 316850
-
Rui Ueyama authored
This patch fixes ubsan's "shift exponent 64 is too large for 32-bit type 'int'" error. llvm-svn: 316849
-
Rui Ueyama authored
Finding aliases for shared symbols doesn't need st_shndx because we can just compare st_value. llvm-svn: 316848
-
Simon Pilgrim authored
llvm-svn: 316847
-
Rui Ueyama authored
Because of r314495 which converts DefinedCommon symbols to DefinedRegular symbols, common symbols are no longer reachable to the MapFile writer. So the code to handle common symbols is now dead. llvm-svn: 316846
-
Simon Pilgrim authored
llvm-svn: 316845
-
Simon Pilgrim authored
Split matchVectorShuffleWithPACK from lowerVectorShuffleWithPACK so that we can reuse it for target shuffle combines llvm-svn: 316844
-
Martin Storsjo authored
This restores the previous behaviour of the Registers_* classes after SVN r316745. Differential Revision: https://reviews.llvm.org/D39382 llvm-svn: 316843
-
Rui Ueyama authored
llvm-svn: 316842
-
Rui Ueyama authored
This change allows us to use less templates for Shared symbol and the functions that deals with shared symbols. llvm-svn: 316841
-
Craig Topper authored
I think this code is unreachable due to some promotions that occur elsewhere. I'll look into that to be sure, but for now I thought I should at least fix the obvious typo. llvm-svn: 316840
-
Craig Topper authored
llvm-svn: 316839
-
Saleem Abdulrasool authored
Add a trivial helper for checking if the architecture is AArch64 Little Endian or Big Endian. llvm-svn: 316837
-
Richard Smith authored
OpaqueValueExpr in a GNU binary conditional expression. It's not meaningful for a non-materialized temporary object to be used as a common subexpression of multiple expressions. llvm-svn: 316836
-
Sanjay Patel authored
This is no-functional-change-intended. This is repackaging the functionality of D30333 (defer switch-to-lookup-tables) and D35411 (defer folding unconditional branches) with pass parameters rather than a named "latesimplifycfg" pass. Now that we have individual options to control the functionality, we could decouple when these fire (but that's an independent patch if desired). The next planned step would be to add another option bit to disable the sinking transform mentioned in D38566. This should also make it clear that the new pass manager needs to be updated to limit simplifycfg in the same way as the old pass manager. Differential Revision: https://reviews.llvm.org/D38631 llvm-svn: 316835
-
Simon Pilgrim authored
We no longer rely on the vector source being a comparison result, just have sufficient sign bits. llvm-svn: 316834
-
Craig Topper authored
[X86] Correct the alignments on the aligned test cases in fast-isel-vecload.ll to make sure they test selection of aligned loads. llvm-svn: 316833
-
Benjamin Kramer authored
No functionality change intended. llvm-svn: 316832
-
- Oct 28, 2017
-
-
Simon Pilgrim authored
[SelectionDAG] Support 'bit preserving' floating points bitcasts on computeKnownBits/ComputeNumSignBits For cases where we know the floating point representations match the bitcasted integer equivalent, allow bitcasting to these types. This is especially useful for the X86 floating point compare results which return all/zero bits but as a floating point type. Differential Revision: https://reviews.llvm.org/D39289 llvm-svn: 316831
-
Peter Szecsi authored
The loop unrolling feature aims to track the maximum possible steps a loop can make. In order to implement this, it investigates the initial value of the counter variable and the bound number. (It has to be known.) These numbers are used as llvm::APInts, however, it was not checked if their bitwidths are the same which lead to some crashes. This revision solves this problem by extending the "shorter" one (to the length of the "longer" one). For the detailed bug report, see: https://bugs.llvm.org/show_bug.cgi?id=34943 Differential Revision: https://reviews.llvm.org/D38922 llvm-svn: 316830
-
Craig Topper authored
llvm-svn: 316829
-
Craig Topper authored
llvm-svn: 316828
-
Craig Topper authored
llvm-svn: 316827
-
Saleem Abdulrasool authored
The existing coverage for the Darwin targets wasn't enough to catch all the variations. Improve the coverage a bit further and fix a few cases for Darwin targets. llvm-svn: 316826
-
Craig Topper authored
llvm-svn: 316825
-
Haicheng Wu authored
LLVM crashes when factoring out an out-of-bound index into preceding dimension and the preceding dimension uses vector index. Simply bail out now when this case happens. Differential Revision: https://reviews.llvm.org/D38677 llvm-svn: 316824
-
Craig Topper authored
The selection of these shows up as a code coverage hole when looking at the llvm-cov link on llvm.org llvm-svn: 316823
-
Craig Topper authored
llvm-svn: 316822
-
Martin Pelikan authored
The build got broken after D39277 (and rL316816) deleted <cerrno>. llvm-svn: 316821
-
Richard Smith authored
Never try to instantiate a deduction guide's "definition". Fixes bogus warning when there inevitably isn't one. llvm-svn: 316820
-
Craig Topper authored
[PartialInlineLibCalls] Teach PartialInlineLibCalls to honor nobuiltin, properly check the function signature, and check TLI::has Summary: We shouldn't do this transformation if the function is marked nobuitlin. We were only checking that the return type is floating point, we really should be checking the argument types and argument count as well. This can be accomplished by using the other version of getLibFunc that takes the Function and not just the name. We should also be checking TLI::has since sqrtf is a macro on Windows. Fixes PR32559. Reviewers: hfinkel, spatel, davide, efriedma Reviewed By: davide, efriedma Subscribers: efriedma, llvm-commits, eraman Differential Revision: https://reviews.llvm.org/D39381 llvm-svn: 316819
-
Eugene Zelenko authored
llvm-svn: 316818
-
Rui Ueyama authored
I don't think we have to aim for precise bug compatibility. We can return a nullptr if a section is consumed by the linker, and the rest should naturally work. llvm-svn: 316817
-
Dean Michael Berris authored
Summary: This change removes dependencies on STL types: - std::aligned_storage -- we're using manually-aligned character buffers instead for metadata and function records. - std::tuple -- use a plain old struct instead. This is an incremental step in removing all STL references from the compiler-rt implementation of XRay (llvm.org/PR32274). Reviewers: dblaikie, pelikan, kpw Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D39277 llvm-svn: 316816 -
Tom Stellard authored
Reviewers: arsenm Reviewed By: arsenm Subscribers: kzhuravl, wdng, nhaehnle, yaxunl, rovka, kristof.beyls, igorb, dstuttard, tpr, t-tye, llvm-commits Differential Revision: https://reviews.llvm.org/D38439 llvm-svn: 316815
-
Bob Haarman authored
Summary: The removed code checks that we are able to handle a 64-bit number, but the code we're calling takes two dwords (for a total of 64 bits), so this is always true. Reviewers: zturner, rnk, majnemer, compnerd Reviewed By: zturner Subscribers: amccarth, hiraditya, lebedev.ri, llvm-commits Differential Revision: https://reviews.llvm.org/D39263 llvm-svn: 316814
-
Jake Ehrlich authored
Revert "Add support for writing 64-bit symbol tables for archives when offsets become too large for 32-bit" This reverts commit r316805. llvm-svn: 316813
-
Rui Ueyama authored
llvm-svn: 316812
-