- Aug 22, 2014
-
-
Moritz Roth authored
There are two add-immediate instructions in Thumb1: tADDi8 and tADDi3. Only the latter supports using different source and destination registers, so whenever we materialize a new base register (at a certain offset) we'd do so by moving the base register value to the new register and then adding in place. This patch changes the code to use a single tADDi3 if the offset is small enough to fit in 3 bits. Differential Revision: http://reviews.llvm.org/D5006 llvm-svn: 216193
-
Hans Wennborg authored
In both Clang and LLVM, this is a common pattern: Size = sizeof(DeclRefExpr) + SomeExtraStuff; void *Mem = Context.Allocate(Size, llvm::alignOf<DeclRefExpr>()); return new (Mem) DeclRefExpr(...); The annoying thing is that because the default placement-new operator has a nothrow specification, the compiler will insert a null check of Mem before calling the DeclRefExpr constructor. This null check is redundant for us, because we expect the allocation functions to never return null. By annotating the allocator functions with returns_nonnull, we can optimize away these checks. Compiling clang with a recent version of Clang and measuring with: $ perf stat -r20 bin/clang.patch -fsyntax-only -w gcc.c && perf stat -r20 bin/clang.orig -fsyntax-only -w gcc.c Shows a 2.4% speed-up (+- 0.8%). The pattern occurs in LLVM too. Measuring with -O3 (and now using bzip2.c instead, because it's smaller): $ perf stat -r20 bin/clang.patch -O3 -w bzip2.c && perf stat -r20 bin/clang.orig -O3 -w bzip2.c Shows 4.4 % speed-up (+- 1%). If anyone knows of a similar attribute we can use for MSVC, or some other technique to get rid off the null check there, please let me know. Differential Revision: http://reviews.llvm.org/D4989 llvm-svn: 216192
-
Fariborz Jahanian authored
and checking on availability of method declaration instead of crashing. // rdar://18059669 llvm-svn: 216191
-
Sean Callanan authored
<rdar://problem/18084105> llvm-svn: 216189
-
Todd Fiala authored
See http://reviews.llvm.org/D4969 for details. Change by Paul Osmialowski. llvm-svn: 216188
-
Juergen Ributzka authored
These tests and many more are already covered by fast-isel-addressing-modes.ll. llvm-svn: 216186
-
Todd Fiala authored
See http://reviews.llvm.org/D4803 for more details. Change by Paul Osmialowski. llvm-svn: 216185
-
Alexander Potapenko authored
llvm-svn: 216184
-
Hans Wennborg authored
No functionality change. llvm-svn: 216183
-
- Aug 21, 2014
-
-
Jonathan Roelofs authored
http://reviews.llvm.org/D4984 llvm-svn: 216182
-
Tom Stellard authored
This fixes a crash in the OCL_ImgProc/Canny OpenCV test. NOTE: This is a candidate for the 3.5 branch. llvm-svn: 216181
-
Tom Stellard authored
llvm-svn: 216180
-
Tom Stellard authored
This is currently a no-op, which is allowed by the OpenCL specification. llvm-svn: 216179
-
Rafael Espindola authored
No functionality change. llvm-svn: 216178
-
Timur Iskhodzhanov authored
At least check-asan works with this change. If the change breaks anything, we'll need to add: a) a comment describing why we have to use INTERCEPT_FUNCTION rather than ASAN_INTERCEPT_FUNC and b) a test case. llvm-svn: 216177
-
Zinovy Nis authored
llvm-svn: 216176
-
Benjamin Kramer authored
PR20677 llvm-svn: 216175
-
Rafael Espindola authored
llvm-svn: 216174
-
Josh Klontz authored
Summary: This bug was introduced in r213006 which makes an assumption that MCSection is COFF for Windows MSVC. This assumption is broken for MCJIT users where ELF is used instead [1]. The fix is to change the MCSection cast to a dyn_cast. [1] http://lists.cs.uiuc.edu/pipermail/llvmdev/2013-December/068407.html. Reviewers: majnemer Reviewed By: majnemer Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D4872 llvm-svn: 216173
-
Oliver Stannard authored
The FPv4-SP floating-point unit is generally referred to as single-precision only, but it does have double-precision registers and load, store and GPR<->DPR move instructions which operate on them. This patch enables the use of these registers, the main advantage of which is that we now comply with the AAPCS-VFP calling convention. This partially reverts r209650, which added some AAPCS-VFP support, but did not handle return values or alignment of double arguments in registers. This patch also adds tests for Thumb2 code generation for floating-point instructions and intrinsics, which previously only existed for ARM. llvm-svn: 216172
-
Rafael Espindola authored
llvm-svn: 216171
-
Benjamin Kramer authored
It's not meant to be used with operator delete and this avoids emitting virtual dtors for every derived format object. llvm-svn: 216170
-
Erik Verbruggen authored
This does not require -ffast-math, and it gives CSE/GVN more options to eliminate duplicate expressions in, e.g.: return ((x + 0.1234 * y) * (x - 0.1234 * y)); Differential Revision: http://reviews.llvm.org/D4904 llvm-svn: 216169
-
Benjamin Kramer authored
While there remove noop casts. llvm-svn: 216168
-
Benjamin Kramer authored
The call will never go to a more derived class, but that's intentional in those cases. llvm-svn: 216167
-
Daniel Sanders authored
Fix invalid test generation by utils/ABITest/ABITestGen.py when the same enum is generated more than once. When generating records/unions, the same enum type may be generated more than once (with different names). In these cases, the name of the enum values are not sufficiently unique to prevent multiple declarations. E.g: typedef enum T3 { enum0val0 } T3; typedef T3 T2[3]; typedef enum T4 { enum0val0 } T4; typedef union T1 { T2 field0; T4 field1; char field2; } T1; Added a unique suffix to enum values so that multiple identical enum types do not use the same enum value names. One example of this bug is produced by: ABITestGen.py --no-unsigned --no-vector --no-complex --no-bool \ --max-args 0 --max-record-depth 1 -o inputs/test.9921.a.c \ -T inputs/test.9921.b.c -D inputs/test.9921.driver.c \ --min=9921 --count=1 llvm-svn: 216166 -
Dan Liew authored
to fail. llvm-svn: 216165
-
Robert Khasanov authored
llvm-svn: 216164
-
Robert Khasanov authored
llvm-svn: 216163
-
Robert Khasanov authored
llvm-svn: 216162
-
Robert Khasanov authored
Added FeatureSMAP. Broadwell ISA includes Haswell ISA + ADX + RDSEED + SMAP llvm-svn: 216161
-
Zinovy Nis authored
[INDVARS] Extend using of widening of induction variables for the cases of "sub nsw" and "mul nsw" instructions. Currently only "add nsw" are widened. This patch eliminates tons of "sext" instructions for 64 bit code (and the corresponding target code) in cases like: int N = 100; float **A; void foo(int x0, int x1) { float * A_cur = &A[0][0]; float * A_next = &A[1][0]; for(int x = x0; x < x1; ++x). { // Currently only [x+N] case is widened. Others 2 cases lead to sext. // This patch fixes it, so all 3 cases do not need sext. const float div = A_cur[x + N] + A_cur[x - N] + A_cur[x * N]; A_next[x] = div; } } ... > clang++ test.cpp -march=core-avx2 -Ofast -fno-unroll-loops -fno-tree-vectorize -S -o - Differential Revision: http://reviews.llvm.org/D4695 llvm-svn: 216160 -
Elena Demikhovsky authored
By Arch Robison. llvm-svn: 216159
-
Craig Topper authored
llvm-svn: 216158
-
David Majnemer authored
Adapted from a patch by Richard Smith, test-case written by me. llvm-svn: 216157
-
Craig Topper authored
Remove custom implementations of max/min in StringRef that was originally added to work an old gcc bug. I believe its been fixed by now. llvm-svn: 216156
-
Eric Fiselier authored
llvm-svn: 216155
-
Eric Fiselier authored
llvm-svn: 216154
-
Rui Ueyama authored
I'm adding new parameters to the function, and the existing parameter with a default argument is found confusing. llvm-svn: 216153
-
Rui Ueyama authored
llvm-svn: 216152
-