- Oct 15, 2014
-
-
Anton Yartsev authored
llvm-svn: 219794
-
Jan Vesely authored
v2: Fix function declaration Add range metadata to r600 implementation v3: change prefix to AMDGPU Reviewed-by:Tom Stellard <tom@stellard.net> Signed-off-by:
Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 219793
-
Samuel Benzaquen authored
Summary: Speed up hasName() matcher by skipping the expensive generation of the fully qualified name unless we need it. In the common case of matching an unqualified name, we don't need to generate the full name. We might not even need to copy any string at all. This change speeds up our clang-tidy benchmark by ~10% Reviewers: klimek Subscribers: klimek, cfe-commits Differential Revision: http://reviews.llvm.org/D5776 llvm-svn: 219792
-
Viktor Kutuzov authored
Differential Revision: http://reviews.llvm.org/D5730 llvm-svn: 219791
-
Viktor Kutuzov authored
Differential Revision: http://reviews.llvm.org/D5729 llvm-svn: 219790
-
Alexander Kornienko authored
Summary: This patch makes the check work better for LLVM code: * always fix existing #endif comments * use one space before the comment (+allow customization for other styles) Reviewers: djasper Reviewed By: djasper Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D5795 llvm-svn: 219789
-
Alexander Kornienko authored
llvm-svn: 219788
-
Alexander Kornienko authored
llvm-svn: 219787
-
Alexander Kornienko authored
Summary: Some of the misc checks belong to readability/. I'm moving them there without changing check names for now. As the next step, I want to register some of these checks in the google and llvm modules with suitable settings (e.g. BracesAroundStatementsCheck). I'm not sure if we want to create a "readability" module, probably not. Reviewers: djasper Reviewed By: djasper Subscribers: curdeius, cfe-commits Differential Revision: http://reviews.llvm.org/D5792 llvm-svn: 219786
-
Marshall Clow authored
Fixes PR21157 'tuple: non-default constructible tuple hard failure' Thanks to Louis Dionne for the bug report and the patch. llvm-svn: 219785
-
Dmitry Vyukov authored
Write interceptor calls malloc, which causes a false unsafe-call-in-signal-handler report. See the test. llvm-svn: 219784
-
Dmitry Vyukov authored
build is used as gtest temp build dir, and is cleared during every build llvm-svn: 219783
-
Matthew Gardiner authored
Recognise the SHT_NOBITS property in kalimba ELF, and determine this to be of type zerofilled. Subsequently recognise this type to represent bytes on the target's DATA address space, and therefore be sized accordingly. llvm-svn: 219782
-
David Majnemer authored
Unions are initialized with the default initialization of their first named member. If that member is not zero initialized, then we should prefer that member's type. Otherwise, we might try to make an otherwise unsuitable type (like an array) which we cannot easily initialize with a pointer to member. llvm-svn: 219781
-
David Majnemer authored
No functionality change intended. llvm-svn: 219780
-
Dmitry Vyukov authored
llvm-svn: 219779
-
Matt Arsenault authored
llvm-svn: 219778
-
Matt Arsenault authored
llvm-svn: 219777
-
Juergen Ributzka authored
This breaks our internal build bots. Reverting it to get the bots green again. llvm-svn: 219776
-
David Majnemer authored
We assumed the last argument of the copy constructor was the this pointer. However, this is not the case under the MS ABI. llvm-svn: 219775
-
Richard Trieu authored
Split logic to separate checking function Refine the macro checking Catch nullptr->bool conversions Add some explanatory comments llvm-svn: 219774
-
Jingyue Wu authored
Summary: Fixes a FIXME in MachineSinking. Instead of using the simple heuristics in isPostDominatedBy, use the real MachinePostDominatorTree and MachineLoopInfo. The old heuristics caused instructions to sink unnecessarily, and might create register pressure. This is the second try of the fix. The first one (D4814) caused a performance regression due to failing to sink instructions out of loops (PR21115). This patch fixes PR21115 by sinking an instruction from a deeper loop to a shallower one regardless of whether the target block post-dominates the source. Thanks Alexey Volkov for reporting PR21115! Test Plan: Added a NVPTX codegen test to verify that our change prevents the backend from over-sinking. It also shows the unnecessary register pressure caused by over-sinking. Added an X86 test to verify we can sink instructions out of loops regardless of the dominance relationship. This test is reduced from Alexey's test in PR21115. Updated an affected test in X86. Also ran SPEC CINT2006 and llvm-test-suite for compilation time and runtime performance. Results are attached separately in the review thread. Reviewers: Jiangning, resistor, hfinkel Reviewed By: hfinkel Subscribers: hfinkel, bruno, volkalexey, llvm-commits, meheff, eliben, jholewinski Differential Revision: http://reviews.llvm.org/D5633 llvm-svn: 219773
-
Jason Molenda authored
in GetFullUnwindPlanForFrame() - the code was mostly checking that we had an active Process and ABI but not always. clang static analyzer fixit. llvm-svn: 219772
-
Jason Molenda authored
(it was checked for NULL-ness in some places, not in others) clang static analyzer fixit. llvm-svn: 219771
-
Jason Molenda authored
clang static analyzer fixit. llvm-svn: 219770
-
Jason Molenda authored
exists a code path where it could be used while uninitialized. clang static analyzer fixit. llvm-svn: 219769
-
Jason Molenda authored
constructors. clang static analyzer fixit. llvm-svn: 219768
-
Tim Northover authored
Early attempts to support AAPCS bare metal MachO targets based the decision on the CPU being compiled for. This was not a particularly great idea and we've got a better option now, but this check remained. No functional change for any target we care about. llvm-svn: 219767
-
Justin Bogner authored
The various ways to create an ASTUnit all take a refcounted pointer to a diagnostics engine as an argument, and if it isn't pointing at anything they initialize it. This is a pretty confusing API, and it really makes more sense for the caller to initialize the thing since they control the lifetime anyway. This fixes the one caller that didn't bother initializing the pointer and asserts that the argument is initialized. llvm-svn: 219752
-
Eric Christopher authored
llvm-svn: 219751
-
Eric Christopher authored
llvm-svn: 219750
-
Eric Christopher authored
Patch by Ehsan Akhgari. llvm-svn: 219749
-
Gerolf Hoflehner authored
This is a follow up to commit r219742. It removes the CCInMI variable and accesses the CC in CSCINC directly. In the case of a conditional branch accessing the CC with CCInMI was wrong. llvm-svn: 219748
-
Justin Bogner authored
llvm-svn: 219747
-
Nick Kledzik authored
llvm-svn: 219746
-
Hans Wennborg authored
llvm-svn: 219745
-
Ehsan Akhgari authored
Summary: AddressSanitizer currently doesn't support this configuration, and binaries built with it will just get into an infinite loop during startup. Test Plan: Includes an automated test. Reviewers: samsonov Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D5764 llvm-svn: 219744
-
Hans Wennborg authored
majnemer pointed out that vadefs.h was added in the wrong place. Might as well sort the rest too. llvm-svn: 219743
-
Gerolf Hoflehner authored
Peephole optimization that generates a single conditional branch for csinc-branch sequences like in the examples below. This is possible when the csinc sets or clears a register based on a condition code and the branch checks that register. Also the condition code may not be modified between the csinc and the original branch. Examples: 1. Convert csinc w9, wzr, wzr, <CC>;tbnz w9, #0, 0x44 to b.<invCC> 2. Convert csinc w9, wzr, wzr, <CC>; tbz w9, #0, 0x44 to b.<CC> rdar://problem/18506500 llvm-svn: 219742
-
Hal Finkel authored
A few minor changes to prevent @llvm.assume from interfering with loop vectorization. First, treat @llvm.assume like the lifetime intrinsics, which are scalarized (but don't otherwise interfere with the legality checking). Second, ignore the cost of ephemeral instructions in the loop (these will go away anyway during CodeGen). Alignment assumptions and other uses of @llvm.assume can often end up inside of loops that should be vectorized (this is not uncommon for assumptions generated by __attribute__((align_value(n))), for example). llvm-svn: 219741
-