- Oct 30, 2017
-
-
Marshall Clow authored
llvm-svn: 316873
-
Philip Pfaffe authored
Summary: When GPUNodeBuilder creates loops inside the kernel, it dispatches to IslNodeBuilder. This however is surprisingly dangerous, since it accesses the AST Node's user through the wrong type. This patch fixes this problem by overriding createFor correctly. This fixes PR35010. Reviewers: grosser, bollu, Meinersbur Reviewed By: Meinersbur Subscribers: Meinersbur, nemanjai, pollydev, llvm-commits, kbarton Differential Revision: https://reviews.llvm.org/D39364 llvm-svn: 316872
-
Simon Pilgrim authored
Max depth was being exceeded which could prevent some combines working llvm-svn: 316871
-
Philip Pfaffe authored
Add missing %loadPolly directive to support out of tree builds. One of the changes is somewhat bigger, because the directive turns on LLVM names, and the testcase deosn't use those. llvm-svn: 316870
-
Sanjay Patel authored
The old PM sets the options of what used to be known as "latesimplifycfg" on the instantiation after the vectorizers have run, so that's what we'redoing here. FWIW, there's a later SimplifyCFGPass instantiation in both PMs where we do not set the "late" options. I'm not sure if that's intentional or not. Differential Revision: https://reviews.llvm.org/D39407 llvm-svn: 316869
-
Simon Pilgrim authored
llvm-svn: 316868
-
Marshall Clow authored
llvm-svn: 316867
-
Simon Pilgrim authored
Introduce a isConstOrDemandedConstSplat helper function that can recognise a constant splat build vector for at least the demanded elts we care about. llvm-svn: 316866
-
Simon Pilgrim authored
llvm-svn: 316865
-
Craig Topper authored
I believe the test_sub_1_cmp_1_setcc_ugt test case is being miscompiled in the fast inc/dec case. llvm-svn: 316864
-
Rui Ueyama authored
llvm-svn: 316863
-
Rui Ueyama authored
llvm-svn: 316862
-
- Oct 29, 2017
-
-
Craig Topper authored
[X86] Remove combine that turns X86ISD::LSUB into X86ISD::LADD. Update patterns that depended on this. If the carry flag is being used, this transformation isn't safe. This does prevent some test cases from using DEC now, but I'll try to look into that separately. Fixes PR35068. llvm-svn: 316860
-
Craig Topper authored
llvm-svn: 316859
-
Saleem Abdulrasool authored
AAPCS and AAPCS64 mandate that `wchar_t` with `-fno-short-wchar` is an `unsigned int` rather than a `signed int`. Ensure that the driver does not flip the signedness of `wchar_t` for those targets. Add additional tests to ensure that this does not regress. llvm-svn: 316858
-
Craig Topper authored
llvm-svn: 316857
-
Craig Topper authored
llvm-svn: 316856
-
Craig Topper authored
llvm-svn: 316855
-
Craig Topper authored
llvm-svn: 316854
-
Craig Topper authored
llvm-svn: 316853
-
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
-