- Aug 21, 2015
-
-
Ahmed Bougacha authored
This lets us optimize them better. We agreed to remove the intrinsics, instead of combining them later, as, at -O0, we generate the expected instructions. Plus, it's a nice cleanup. Differential Revision: http://reviews.llvm.org/D10556 llvm-svn: 245605
-
Chris Bieneman authored
In CMake variables that haven't been set are evaluated to empty strings, so we don't need to set the variables to empty strings. llvm-svn: 245604
-
Chris Bieneman authored
EXCLUDE_FROM_ALL in ExternalProject is only available on CMake 3.1 and later. llvm-svn: 245603
-
Jonathan Peyton authored
z_Linux_asm.s can use the KMP_OS_* / KMP_MIC macros instead of the predefined compiler macro checks. The macro logic to determine KMP_MIC is moved from kmp_os.h to kmp_platform.h. llvm-svn: 245602
-
Eric Fiselier authored
llvm-svn: 245601
-
Aaron Ballman authored
llvm-svn: 245600
-
Tobias Grosser authored
The previous commit lacked a test case for register tiling + pre-vectorization and we obviously got it immediately wrong. llvm-svn: 245599
-
Tobias Grosser authored
llvm-svn: 245598
-
Tobias Grosser authored
llvm-svn: 245597
-
Adhemerval Zanella authored
This patch adds support for asan on aarch64-linux with 42-bit VMA (current default config for 64K pagesize kernels). The support is enabled by defining the SANITIZER_AARCH64_VMA to 42 at build time for both clang/llvm and compiler-rt. The default VMA is 39 bits. For 42-bit VMA aarch64 uses SANITIZIER_CAN_USER_ALLOCATOR64. llvm-svn: 245596
-
Douglas Katzman authored
Differential Revision: http://reviews.llvm.org/D12201 llvm-svn: 245595
-
Adhemerval Zanella authored
This patch adds support for asan on aarch64-linux with 42-bit VMA (current default config for 64K pagesize kernels). The support is enabled by defining the SANITIZER_AARCH64_VMA to 42 at build time for both clang/llvm and compiler-rt. The default VMA is 39 bits. llvm-svn: 245594
-
Johannes Doerfert authored
To avoid multiple exits and the resulting complicated conditions when creating a SCoP we now use the single hasFeasibleRuntimeContext() check to decide if a SCoP should be dismissed right after construction. If building runtime checks failed the assumed context is made infeasible, hence the optimized version will never be executed and the SCoP can be dismissed. llvm-svn: 245593
-
Artem Belevich authored
It's breaking internal test. llvm-svn: 245592
-
Jingyue Wu authored
Summary: Refactor, NFC Extracts computeOverflowForSignedAdd and isKnownNonNegative from NaryReassociate to ValueTracking in case others need it. Reviewers: reames Subscribers: majnemer, llvm-commits Differential Revision: http://reviews.llvm.org/D11313 llvm-svn: 245591
-
Bruno Cardoso Lopes authored
Do that by copying out the elements to another SmallPtrSet. Follow up from r245309. llvm-svn: 245590
-
Adrian Prantl authored
Instruction::dropUnknownMetadata(KnownSet) is supposed to preserve all metadata in KnownSet, but the condition for DebugLocs was inverted. Most users of dropUnknownMetadata() actually worked around this by not adding LLVMContext::MD_dbg to their list of KnowIDs. This is now made explicit. llvm-svn: 245589
-
Adrian Prantl authored
Caught by the famous "DebugLoc describes the currect SubProgram" assertion. When GVN is removing a nonlocal load it updates the debug location of the SSA value it replaced the load with with the one of the load. In the testcase this actually overwrites a valid debug location with an empty one. In reality GVN has to make an arbitrary choice between two equally valid debug locations. This patch changes to behavior to only update the location if the value doesn't already have a debug location. llvm-svn: 245588
-
Alexander Kornienko authored
llvm-svn: 245587
-
Alexander Kornienko authored
llvm-svn: 245586
-
Johannes Doerfert authored
If nothing is executed we can bail out early. Otherwise we can use the constraints that ensure at least one statement is executed for simplification. llvm-svn: 245585
-
Johannes Doerfert authored
We will record if a SAI is the base of another SAI or derived from it. This will allow to reason about indirect base pointers later on and allows a clearer picture of indirection also in the SCoP dump. llvm-svn: 245584
-
Alexander Kornienko authored
Summary: Add check_clang_tidy.py script that is functionally identical to the check_clang_tidy.py, but should also be functional on windows. I've verified that the script works on linux. Would be nice if folks using Windows could test the patch before I break windows bots ;) Reviewers: chapuni, aaron.ballman Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D12180 llvm-svn: 245583
-
Chris Bieneman authored
llvm-svn: 245582
-
Chris Bieneman authored
If you're on an Apple platform and /usr/include doesn't exist, we should set a sysroot flag when calling clang. llvm-svn: 245581
-
Chris Bieneman authored
Summary: There are a number of issues with unit tests on Darwin. These patches address the following: * Unit tests should be passed -arch (-m32/-m64 isn't sufficient) * Unit tests should be passed ${DARWIN_osx_CFLAGS} because they're being built for OS X * Test architectures should be filtered based on base system capabilities (i.e. don't try running x86_64h tests on pre-haswell hardware). Reviewers: bogner, filcab, kubabrecka Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D12174 llvm-svn: 245580 -
Adam Nemet authored
Since Ashutosh made findDefsUsedOutsideOfLoop public, we can clean this up. Now clients that don't compute DefsUsedOutsideOfLoop can just call versionLoop() and computing DefsUsedOutsideOfLoop will happen implicitly. With that there is no reason to expose addPHINodes anymore. Ashutosh, you can now drop the calls to findDefsUsedOutsideOfLoop and addPHINodes in LVerLICM and things should just work. llvm-svn: 245579
-
James Molloy authored
It won't go well. We've already marked 64-bit SETCCs as non-Custom, but it's just possible that a SETCC has a legal result type but an illegal operand type. If this happens, bail out before we create unselectable nodes. Fixes PR24292. I tried to create a testcase but in 99% of cases we can't trigger this - not surprising that this bug has been latent since 2009. llvm-svn: 245577
-
Rafael Espindola authored
This matches the behaviour of the gnu assembler and is part of fixing pr24486. llvm-svn: 245576
-
Douglas Katzman authored
Differential Revision: http://reviews.llvm.org/D12194 llvm-svn: 245575
-
- Aug 20, 2015
-
-
Aaron Ballman authored
Add a new clang-tidy check (misc-move-constructor-init) that diagnoses move constructor initializations that call copy constructors instead of move constructors. llvm-svn: 245571
-
Balaram Makam authored
Summary: We know that -x & 1 is equivalent to x & 1, avoid using negation for testing if a negative integer is even or odd. Reviewers: majnemer Subscribers: junbuml, mssimpso, gberry, mcrosier, llvm-commits Differential Revision: http://reviews.llvm.org/D12156 llvm-svn: 245569
-
NAKAMURA Takumi authored
- Single quotation is not recognized. - Use """ to pass a double quotation. It also reverts r211831. llvm-svn: 245567
-
NAKAMURA Takumi authored
FIXME: "-I %S/Inputs/file-filter/system/.." must be redundant. On Win32, file-filter/system\system-header1.h precedes file-filter\header*.h due to code order between '/' and '\\'. We should remove such a tweak to introduce the *right* path canonicalization. Posix: file-filter/header*.h file-filter/system/system-header1.h Win32: file-filter/system\system-header1.h file-filter\header*.h Win32, tweaked: file-filter/system/..\header*.h file-filter/system\system-header1.h It had been disabled since r220837. llvm-svn: 245566
-
NAKAMURA Takumi authored
clang-tools-extra/test/clang-tidy/clang-tidy-diff.cpp was the only user. llvm-svn: 245565
-
Tobias Grosser authored
Register tiling in Polly is for now just an additional level of tiling which is fully unrolled. It is disabled by default. To make this useful for more than experiments, we still need a cost function as well as possibly further optimizations that teach LLVM to actually put some of the values we got into scalar registers. llvm-svn: 245564
-
Tobias Grosser authored
By default we only use one level of tiling for loops, but in general tiling for multiple levels is trivial for us. Hence, we add a set of options that allow people to play with a second level of tiling. If this is profitable for some cases we can work on heuristics that allow us to identify these cases and use two-level tiling for them. llvm-svn: 245563
-
Aaron Ballman authored
llvm-svn: 245562
-
Alexander Kornienko authored
http://reviews.llvm.org/D12186 Patch by Angel Garcia! llvm-svn: 245561
-
Olivier Goffart authored
The problem is that the arguments are of TheCall are reset later to the ones in Args, making TypoExpr put back. Some TypoExpr that have already been diagnosed and will assert later in Sema::getTypoExprState llvm-svn: 245560
-