- Feb 15, 2016
-
-
Felix Berger authored
Summary: Fix oversight not checking the value of the Optional<bool> returned by isExpensiveToCopy(). Reviewers: alexfh Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D17064 llvm-svn: 260870
-
Felix Berger authored
llvm-svn: 260869
-
Saleem Abdulrasool authored
Silence a -Wreorder warning about order of member initialization and a -Wqual-cast warning about casting away constness. NFC. llvm-svn: 260868
-
Saleem Abdulrasool authored
In the case that the array indexing itself is within a type dependent context, bail out of the evaluation. We would previously try to symbolically evaluate the expression which would then try to evaluate a non-address expression as an address, triggering an assertion in Asserts builds. We only need to consider the array subscript expression itself as in the case that the base itself being type dependent is handled appropriately in EvalAddr. Resolves PR26599. llvm-svn: 260867
-
Argyrios Kyrtzidis authored
Enable it for USRs and names when indexing. Forward references can have different template argument names; including them makes USRs and names unstable, since the name depends on whether we saw a forward reference or not. llvm-svn: 260866
-
Saleem Abdulrasool authored
These codepaths would generate warnings with GCC on linux even though the switch was covered. Add llvm_unreachable markers to indicate that the switch should be covered. NFC. llvm-svn: 260865
-
Saleem Abdulrasool authored
Propagate const throughout these methods as they are non-mutating analyzers of state. NFC. llvm-svn: 260864
-
Hongbin Zheng authored
Eliminate the global variable "InsnToMemAcc" to make Scop/ScopInfo become more protable, such that we can safely use them in a CallGraphSCC pass. Differential Revision: http://reviews.llvm.org/D17238 llvm-svn: 260863
-
Johannes Doerfert authored
Before this patch it could happen that we did not hoist a load that was a base pointer of another load even though AA already declared the first one as invariant (during ScopDetection). If this case arises we will now skipt the "can be overwriten" check because in this case the over-approximating nature causes us to generate broken code. llvm-svn: 260862
-
Argyrios Kyrtzidis authored
llvm-svn: 260861
-
Johannes Doerfert authored
The former ScopArrayInfo::updateSizes was implicitly divided into an updateElementType and an updateSizes. Now this partitioning is explicit. llvm-svn: 260860
-
Johannes Doerfert authored
So far we separated constant factors from multiplications, however, only when they are at the outermost level of a parameter SCEV. Now, we also separate constant factors from the parameter SCEV if the outermost expression is a SCEVAddRecExpr. With the changes to the SCEVAffinator we can now improve the extractConstantFactor(...) function at will without worrying about any other code part. Thus, if needed we can implement a more comprehensive extractConstantFactor(...) function that will traverse the SCEV instead of looking only at the outermost level. Four test cases were affected. One did not change much and the other three were simplified. llvm-svn: 260859
-
Argyrios Kyrtzidis authored
[index] Factor libclang's functionality to determing the mangled name of symbols into the clangIndex library. llvm-svn: 260858
-
Tobias Grosser authored
This got accidentally dropped in r260025 llvm-svn: 260857
-
Sylvestre Ledru authored
llvm-svn: 260856
-
Sylvestre Ledru authored
llvm-svn: 260855
-
Tobias Grosser authored
This reverts commit https://llvm.org/svn/llvm-project/polly/trunk@260853 We unfortunately still have two bugs left which show only up with -polly-process-unprofitable and which I forgot to test before committing. llvm-svn: 260854
-
Tobias Grosser authored
First support for this feature was committed in r259784. Support for loop invariant load hoisting with different types was added by Johannes Doerfert in r260045. This fixed the last known bug. llvm-svn: 260853
-
Simon Pilgrim authored
llvm-svn: 260852
-
https://llvm.org/bugs/show_bug.cgi?id=25496Dimitry Andric authored
C++ programs compiled for profiling (using `-pg`) should be linked with `-lc++_p` (or `-lstdc++_p`, depending on the `-stdlib=` setting), not with the regular C++ libraries. Add a `FreeBSD::AddCXXStdlibLibArgs()` override to handle this, and add a test case for it. While here, extend the test case for the proper passing of -lm and -lm_p. Reviewers: compnerd, davide, dws, emaste Reviewed By: compnerd Differential Revision: http://reviews.llvm.org/D16264 llvm-svn: 260851
-
- Feb 14, 2016
-
-
Benjamin Kramer authored
Found by lsan. llvm-svn: 260850
-
Amaury Sechet authored
llvm-svn: 260849
-
Amaury Sechet authored
llvm-svn: 260848
-
NAKAMURA Takumi authored
llvm-svn: 260847
-
Amaury Sechet authored
llvm-svn: 260846
-
Amaury Sechet authored
llvm-svn: 260845
-
Argyrios Kyrtzidis authored
llvm-svn: 260844
-
Argyrios Kyrtzidis authored
llvm-svn: 260843
-
Argyrios Kyrtzidis authored
llvm-svn: 260842
-
Argyrios Kyrtzidis authored
llvm-svn: 260841
-
Craig Topper authored
[TableGen] Remove constant string argument from a method that's only called once. We can just hardcode the string inside. There already other things that make the method not reusable. NFC llvm-svn: 260840
-
Dimitry Andric authored
FreeBSD also needs to have sanitizer_linux_libcdep.cc included, otherwise linking will fail with "undefined reference to `__sanitizer::GetRSS()'". While here, tabify the FreeBSD part, similar to the other parts. llvm-svn: 260839
-
Chandler Carruth authored
This ensures that all of the various pieces are working. The next patch will wire up commandline-driven alias analysis chain building and allow BasicAA to work with the AAManager. llvm-svn: 260838
-
Samuel Antao authored
Summary: Unlike other outlined regions in OpenMP, offloading entry points have to have be visible (external linkage) for the device side. Using dots in the names of the entries can be therefore problematic for some toolchains, e.g. NVPTX. Also the patch drops the column information in the unique name of the entry points. The parsing of directives ignore unknown tokens, preventing several target regions to be implemented in the same line. Therefore, the line information is sufficient for the name to be unique. Also, the preprocessor printer does not preserve the column information, causing offloading-entry detection issues if the host uses an integrated preprocessor and the target doesn't (or vice versa). Reviewers: hfinkel, arpith-jacob, carlo.bertolli, kkwli0, ABataev Subscribers: cfe-commits, fraggamuffin, caomhin Differential Revision: http://reviews.llvm.org/D17179 llvm-svn: 260837
-
Chandler Carruth authored
into the new pass manager and fix the latent bugs there. This lets everything live together nicely, but it isn't really useful yet. I never finished wiring the AA layer up for the new pass manager, and so subsequent patches will change this to do that wiring and get AA stuff more fully integrated into the new pass manager. Turns out this is necessary even to get functionattrs ported over. =] llvm-svn: 260836
-
Duncan P. N. Exon Smith authored
r180893 added an indirect include of llvm/Config/Targets.def to llvm/Support/CodeGen.h, which in turn is included by things like llvm/IR/Module.h. After a full build of LLVM and Clang, ninja had to rebuild 1274 files after reconfiguring. This commit strips CodeGen.h back down to just a pile of enums and moves the expensive includes over to CodeGenCWrappers.h (which is only included in two places). This gets ninja down to 88 files if you reconfigure with, e.g., -DLLVM_TARGETS_TO_BUILD=X86. llvm-svn: 260835
-
Simon Pilgrim authored
This patch attempts to represent a shuffle as a repeating shuffle (recognisable by is128BitLaneRepeatedShuffleMask) with the source input(s) in their original lanes, followed by a single permutation of the 128-bit lanes to their final destinations. On AVX2 we can additionally attempt to match using 64-bit sub-lane permutation. AVX2 can also now match a similar 'broadcasted' repeating shuffle. This patch has several benefits: * Avoids prematurely matching with lowerVectorShuffleByMerging128BitLanes which can require both inputs to have their input lanes permuted before shuffling. * Can replace PERMPS/PERMD instructions - although these are useful for cross-lane unary shuffling, they require their shuffle mask to be pre-loaded (and increase register pressure). * Matching the repeating shuffle makes use of a lot of existing shuffle lowering. There is an outstanding minor AVX1 regression (combine_unneeded_subvector1 in vector-shuffle-combining.ll) of a previously 128-bit shuffle + subvector splat being converted to a subvector splat + (2 instruction) 256-bit shuffle, I intend to fix this in a followup patch for review. Differential Revision: http://reviews.llvm.org/D16537 llvm-svn: 260834
-
Argyrios Kyrtzidis authored
llvm-svn: 260833
-
Craig Topper authored
Remove Proc feature flags for X86 processors that are used to inherit features from one processor to another. This exposed extra features to the -mattr command line that we shouldn't. Replace with just inherited listconcats. llvm-svn: 260832
-
Benjamin Kramer authored
Storing std::strings in attributes simply doesn't work, we never call the destructor. Use an array of StringRefs instead of std::strings and copy the data into memory taken from the ASTContext. llvm-svn: 260831
-