- Feb 13, 2017
-
-
Mads Ravn authored
Fix for commit r294912 which had a small error in the AST matcher. llvm-svn: 294913
-
Mads Ravn authored
I have made a small fix for readability-delete-null-pointer check so it also checks for class members. Example of case that it fixes ``` struct A { void foo() { if(mp) delete mp; } int *mp; }; ``` Reviewers: JDevlieghere, aaron.ballman, alexfh, malcolm.parsons Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D29726 llvm-svn: 294912 -
Aaron Ballman authored
llvm-svn: 294911
-
Renato Golin authored
...function type with a redeclaration having the same attribute. Fixing this introduced a secondary problem where we were assuming that K&R functions could not be attributed types when reporting old-style function definitions that are not preceded by a prototype." Also Revert "Hopefully fixes a compile error introduced by r294861." This reverts commit r294862, r294861, as they bork the ARM builds and haven't fix it back. Also, please, short commit titles, long commit decsriptions... llvm-svn: 294910
-
Saleem Abdulrasool authored
core files on FreeBSD have additional notes to capture state. Process those notes when dumping the notes. llvm-svn: 294909
-
Craig Topper authored
[AVX-512] Add various EVEX move instructions to load folding tables using the VEX equivalents as a guide. llvm-svn: 294908
-
Craig Topper authored
I can't prove that we can select this instruction or the AVX/SSE version, but I'm adding it for consistency for now so I can continue matching the load folding tables. llvm-svn: 294907
-
Craig Topper authored
[X86] Fix a couple instruction names to use 'mr' instead of 'rm' to indicate they are stores. AVX-512 version was already named with 'mr'. llvm-svn: 294906
-
Craig Topper authored
llvm-svn: 294905
-
David Blaikie authored
llvm-svn: 294904
-
Saleem Abdulrasool authored
This test explicitly is checking the behaviour of std::thread and pthread interactions. This requires pthreads. Add an appropriate requirement. llvm-svn: 294903
-
Saleem Abdulrasool authored
The newer ucrt version provides the gamma meth routines. Includede them when building the library. llvm-svn: 294902
-
Saleem Abdulrasool authored
Add an unreachable marker to avoid a -Wreturn-type error when building on Windows. llvm-svn: 294901
-
Simon Pilgrim authored
The target shuffle match function arguments were using the term 'Ops' but the function names referred to them as 'Inputs' - use 'Inputs' consistently. llvm-svn: 294900
-
Saleem Abdulrasool authored
The newer versions of ucrt have the math routines. Use the CRT version to determine if we should include the math routines. Fixes two tests for Windows. llvm-svn: 294899
-
Sanjay Patel authored
I found one special case of this transform for 'slt 0', so I removed that and added the general transform. Alive code to check correctness: Name: slt_no_overflow Pre: WillNotOverflowSignedSub(C1, C2) %a = add nsw i8 %x, C2 %b = icmp slt %a, C1 => %b = icmp slt %x, C1 - C2 Name: sgt_no_overflow Pre: WillNotOverflowSignedSub(C1, C2) %a = add nsw i8 %x, C2 %b = icmp sgt %a, C1 => %b = icmp sgt %x, C1 - C2 http://rise4fun.com/Alive/MH Differential Revision: https://reviews.llvm.org/D29774 llvm-svn: 294898
-
- Feb 12, 2017
-
-
Sanjay Patel authored
Enhancing value tracking's analysis of null-ness was suggested in D27855, so here's a first attempt at that. This is part of solving: https://llvm.org/bugs/show_bug.cgi?id=28430 Differential Revision: https://reviews.llvm.org/D28204 llvm-svn: 294897
-
Simon Pilgrim authored
Initial 256-bit vector support - 512-bit support requires extra checks for AVX512BW support (PMOVZXBW) that will be handled in a future patch. llvm-svn: 294896
-
NAKAMURA Takumi authored
AMDGPU::expandMemIntrinsicUses(): Fix an uninitialized variable. This function returned true or undef. llvm-svn: 294895
-
Tobias Grosser authored
Formatting unnamed array names is expensive in LLVM as the this requires deriving the numbered virtual instruction name (e.g., %12) for an llvm::Value, which is currently not implemented efficiently. As instruction numberes anyhow do not really carry a lot of information for the user, we just print 'unknown' instead. This change reduces the scop detection time from 24 to 19 seconds, for one of our large-scale inputs. This is a reduction by 21%. llvm-svn: 294894
-
Tobias Grosser authored
llvm-svn: 294893
-
Dorit Nuzman authored
proven larger than the loop-count This fixes PR31098: Try to resolve statically data-dependences whose compile-time-unknown distance can be proven larger than the loop-count, instead of resorting to runtime dependence checking (which are not always possible). For vectorization it is sufficient to prove that the dependence distance is >= VF; But in some cases we can prune unknown dependence distances early, and even before selecting the VF, and without a runtime test, by comparing the distance against the loop iteration count. Since the vectorized code will be executed only if LoopCount >= VF, proving distance >= LoopCount also guarantees that distance >= VF. This check is also equivalent to the Strong SIV Test. Reviewers: mkuper, anemet, sanjoy Differential Revision: https://reviews.llvm.org/D28044 llvm-svn: 294892
-
Tobias Grosser authored
When deriving the range of valid values of a scalar evolution expression might be a range [12, 8), where the upper bound is smaller than the lower bound and where the range is expected to possibly wrap around. We theoretically could model such a range as a union of two non-wrapping ranges, but do not do this as of yet. Instead, we just do not derive any bounds. Before this change, we could have obtained bounds where the maximal possible value is strictly smaller than the minimal possible value, which is incorrect and also caused assertions during scop modeling. llvm-svn: 294891
-
Elena Demikhovsky authored
The reference is here: https://software.intel.com/sites/default/files/article/402129/mpx-linux64-abi.pdf llvm-svn: 294890
-
Davide Italiano authored
llvm-svn: 294889
-
Chandler Carruth authored
default pipeline. A clang with this patch built with ASan and asserts can build all of the test-suite as well, so it seems to not uncover any latent problems. Differential Revision: https://reviews.llvm.org/D29853 llvm-svn: 294888
-
Chandler Carruth authored
All the invalidation issues and bugs in this seem to be fixed, it has survived a full build of the test suite plus SPEC with asserts and ASan enabled on the Clang binary used. Differential Revision: https://reviews.llvm.org/D29815 llvm-svn: 294887
-
Weiming Zhao authored
Reviewers: rengolin, compnerd Reviewed By: compnerd Subscribers: hans, aemerson Differential Revision: https://reviews.llvm.org/D29869 llvm-svn: 294886
-
Davide Italiano authored
llvm-svn: 294885
-
Davide Italiano authored
llvm-svn: 294884
-
Davide Italiano authored
llvm-svn: 294883
-
Davide Italiano authored
llvm-svn: 294882
-
NAKAMURA Takumi authored
llvm-svn: 294881
-
NAKAMURA Takumi authored
Differential Revision: https://reviews.llvm.org/D27405 llvm-svn: 294880
-
Davide Italiano authored
On Windows the filename might have an extension, namely `.exe`, so the search will fail. Sorry, I don't have a good way to test this as it seems to fail only in some weird configurations. r284430 has the same modification for Fuchsia. llvm-svn: 294879
-
Craig Topper authored
llvm-svn: 294878
-
Saleem Abdulrasool authored
Use # as the comment leader for AArch64 auto-release elision marker. This is to keep it in sync with the value used in swift. When building libdispatch for Linux AArch64, the auto-release elision marker was emitted. However, ELF uses # as the comment leader while MachO accepts both ; and #. Use the common marker for it instead. llvm-svn: 294877
-
Craig Topper authored
[X86] Move code for using blendi for insert_subvector out to an isel pattern. This gives the DAG combiner more opportunity to optimize without needing to dig through the blend. llvm-svn: 294876
-
Craig Topper authored
[DAGCombiner] Make the combine of INSERT_SUBVECTOR into a CONCAT_VECTOR more generic to support larger concats. llvm-svn: 294875
-
Simon Pilgrim authored
Preparatory step for PR31712 llvm-svn: 294874
-