- Apr 29, 2015
-
-
Rafael Espindola authored
llvm-svn: 236047
-
Andrew Kaylor authored
Differential Revision: http://reviews.llvm.org/D9311 llvm-svn: 236046
-
Rafael Espindola authored
Assign the sections in the same pass we compute the index. llvm-svn: 236045
-
Steven Wu authored
Summary: FileScopeAsm should be treated the same as funcion level inline asm. -fno-gnu-inline-asm should trigger an error if file scope asm is used. I missed this case from r226340. This should not affect ms-extension because it is not allowed in the file scope. Reviewers: bob.wilson, rnk Reviewed By: rnk Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D9328 llvm-svn: 236044
-
Richard Smith authored
llvm-svn: 236043
-
James Y Knight authored
llvm-svn: 236042
-
Reid Kleckner authored
Eventually, we will lower this out during IR preparation. llvm-svn: 236036
-
Sean Callanan authored
inherit correctly. llvm-svn: 236035
-
Richard Smith authored
llvm-svn: 236034
-
Rafael Espindola authored
Instead use the Group symbol of MCSectionELF. llvm-svn: 236033
-
Richard Smith authored
llvm-svn: 236032
-
Sanjay Patel authored
This is a compromise: with this simple patch, we should always handle a chain of exactly 3 operations optimally, but we're not generating the optimal balanced binary tree for a longer sequence. In general, this transform will reduce the dependency chain for a sequence of instructions using N operands from a worst case N-1 dependent operations to N/2 dependent operations. The optimal balanced binary tree would reduce the chain to log2(N). The trade-off for not dealing with longer sequences is: (1) we have less complexity in the compiler, (2) we avoid unknown compile-time blowup calculating a balanced tree, and (3) we don't need to worry about the increased register pressure required to parallelize longer sequences. It also seems unlikely that we would ever encounter really long strings of dependent ops like that in the wild, but I'm not sure how to verify that speculation. FWIW, I see no perf difference for test-suite running on btver2 (x86-64) with -ffast-math and this patch. We can extend this patch to cover other associative operations such as fmul, fmax, fmin, integer add, integer mul. This is a partial fix for: https://llvm.org/bugs/show_bug.cgi?id=17305 and if extended: https://llvm.org/bugs/show_bug.cgi?id=21768 https://llvm.org/bugs/show_bug.cgi?id=23116 The issue also came up in: http://reviews.llvm.org/D8941 Differential Revision: http://reviews.llvm.org/D9232 llvm-svn: 236031
-
Alexei Starovoitov authored
Patch by Brenden Blanco. llvm-svn: 236030
-
Artem Belevich authored
device-side compilation. llvm-svn: 236029
-
Rafael Espindola authored
llvm-svn: 236028
-
Filipe Cabecinhas authored
Summary: We don't seem to need to assert here, since this function's callers expect to get a nullptr on error. This way we don't assert on user input. Bug found with AFL fuzz. Reviewers: rafael Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D9308 llvm-svn: 236027
-
Rafael Espindola authored
llvm-svn: 236026
-
Marshall Clow authored
llvm-svn: 236025
-
Siva Chandra authored
Summary: The "internal" name of vars is different between clang and GCC. All this change does is to use a regex instead of the hardcoded internal name. Test Plan: dotest.py -C <clang|gcc> -p TestMiVar Reviewers: ki.stfu Reviewed By: ki.stfu Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D9128 llvm-svn: 236024
-
Daniel Berlin authored
llvm-svn: 236023
-
Rafael Espindola authored
llvm-svn: 236015
-
Evgeniy Stepanov authored
It's available on Android/ARM starting with API 21 (L). llvm-svn: 236014
-
Sanjay Patel authored
We don't need codegen-only intrinsic instructions for the vector forms of these instructions. This makes the reciprocal estimate instruction lowering identical to how we handle normal square roots: (V)SQRTPS / (V)SQRTPD. No existing regression tests fail with this patch. Differential Revision: http://reviews.llvm.org/D9301 llvm-svn: 236013
-
Sean Callanan authored
some bugs in the ASTImporter that this exposed: - When importing functions, the body (if any) was previously ignored. This patch ensures that the body is imported also. - When a function-local Decl is imported, the first thing the ASTImporter does is import its context (via ImportDeclParts()). This can trigger importing the Decl again as part of the body of the function (but only once, since the function's Decl has been added to ImportedDecls). This patch fixes that problem by extending ImportDeclParts() to return the imported Decl if it was imported as part of importing its context, and the patch adds ASTImporter::GetAlreadyImportedOrNull() to support this query. All callers of ImportDeclParts return the imported version of the Decl if ImportDeclParts() returns it. - When creating functions, InnerLocStart of the source function was re-used without importing. This is a straight up bug, and this patch makes ASTImporter import the InnerLocStart and use the imported version. - When importing FileIDs, the ASTImporter previously always tried to re-load the file for the corresponding CacheEntry from disk. This doesn't work if the CacheEntry corresponds to a named memory buffer. This patch changes the code so that if the UniqueID for the cache entry is invalid (i.e., it is not a disk file) the whole entry is treated as if it were invalid, which forces an in-memory copy of the buffer. Also added test cases, using the new support committed in 236011. llvm-svn: 236012
-
Sean Callanan authored
ability to generate code that CodeGen likes. Test cases can use this functionality by calling // RUN: %clang_cc1 -emit-obj -o /dev/null -ast-merge %t.1.ast -ast-merge %t.2.ast %s llvm-svn: 236011
-
Nico Weber authored
llvm-svn: 236010
-
Eric Christopher authored
away. llvm-svn: 236009
-
Dmitry Vyukov authored
We incorrectly replaced shadow slots when the new value is not stronger than the old one. The bug can lead to false negatives. The bug was detected by Go race test suite: https://github.com/golang/go/issues/10589 llvm-svn: 236008
-
Eric Christopher authored
NVPTX overrides. llvm-svn: 236007
-
Jonathan Roelofs authored
http://reviews.llvm.org/D9261 llvm-svn: 236006
-
Serge Pavlov authored
Inclass initializer is instantiated in its own LocalInstantiationScope. It causes problems when instantiating local classes - when instantiation scope is searched for DeclContext of the field, the search fails. As a solution, the instantiation scope of field initializer is combined with its outer scope. This patch fixes PR23194. Differential Revision: http://reviews.llvm.org/D9258 llvm-svn: 236005
-
Tom Stellard authored
Fixes a crash with basically any OpenGL application using the radeonsi driver. Patch by: Michel Dänzer Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90176 Signed-off-by:
Michel Dänzer <michel.daenzer@amd.com> llvm-svn: 236004
-
Tom Stellard authored
llc converts all feature strings to lower case, while the LLVM C API does not, so we need a lower case alias in order to test this with llc. llvm-svn: 236003
-
Aaron Ballman authored
llvm-svn: 236002
-
NAKAMURA Takumi authored
llvm-svn: 236001
-
Justin Holewinski authored
We need to track if an AddrSpaceCast expression was seen when generating an MCExpr for a ConstantExpr. This change introduces a custom lowerConstant method to the NVPTX asm printer that will create NVPTXGenericMCSymbolRefExpr nodes at the appropriate places to encode the information that a given symbol needs to be casted to a generic address. llvm-svn: 236000
-
Marshall Clow authored
llvm-svn: 235999
-
David Blaikie authored
llvm-svn: 235998
-
Sanjay Patel authored
This is a preliminary step to using the IR-level floating-point fast-math-flags in the SDAG (D8900). In this patch, we introduce the optimization flags as their own struct. As noted in the TODO comment, we should eventually share this data between the IR passes and the backend. We also switch the existing nsw / nuw / exact bit functionality of the BinaryWithFlagsSDNode class to use the new struct. The tradeoff is that instead of using the free but limited space of SDNode's SubclassData, we add a data member to the subclass. This means we don't have to repeat all of the get/set methods per flag, but we're potentially adding size to all nodes of this subclassi type. In practice on 64-bit systems (measured on Linux and MacOS X), there is no size difference between an SDNode and BinaryWithFlagsSDNode after this change: they're both 80 bytes. This means that we had at least one free byte to play with due to struct alignment. Differential Revision: http://reviews.llvm.org/D9325 llvm-svn: 235997
-
- Apr 28, 2015
-
-
Rafael Espindola authored
llvm-svn: 235995
-