- Jun 10, 2014
-
-
Hans Wennborg authored
This expands the logic from r210141 to cover partial specializations too. llvm-svn: 210484
-
Alp Toker authored
Support headers shouldn't use config.h definitions, and they should never be undefined like this. ConstantFolding.cpp was the only user of this facility and already includes config.h for other math features, so it makes sense to move the checks there at point of use. (The implicit config.h was also quite dangerous -- removing the FEnv.h include would have silently disabled math constant folding without causing any tests to fail. Need to investigate -Wundef once the cleanup is done.) This eliminates the last config.h include from LLVM headers, paving the way for more consistent configuration checks. llvm-svn: 210483
-
Peter Zotov authored
Patch by Jacques-Pascal Deplaix llvm-svn: 210482
-
Todd Fiala authored
llvm-svn: 210481
-
Peter Zotov authored
Patch by Jacques-Pascal Deplaix llvm-svn: 210480
-
Eric Christopher authored
from the x86 target machine. Should be no functional change. llvm-svn: 210479
-
Matt Arsenault authored
It has other uses besides shift instructions. llvm-svn: 210478
-
Andrea Di Biagio authored
This patch adds new target specific combine rules to identify horizontal add/sub idioms from BUILD_VECTOR dag nodes. This patch also teaches the DAGCombiner how to canonicalize sequences of insert_vector_elt dag nodes according to the following rule: (insert_vector_elt (insert_vector_elt A, I0), I1) -> (insert_vecto_elt (insert_vector_elt A, I1), I0) This new canonicalization rule only triggers if the inner insert_vector dag node has exactly one use; also, both indices must be known constants, and I1 < I0. This last rule made it possible to write a simpler algorithm to identify horizontal add/sub patterns because now we don't have to worry about the ordering of insert_vector_elt dag nodes. llvm-svn: 210477 -
Matt Arsenault authored
llvm-svn: 210476
-
Matt Arsenault authored
llvm-svn: 210475
-
Bill Schmidt authored
The existing code in PPCTargetLowering::LowerMUL() for multiplying two v16i8 values assumes that vector elements are numbered in big-endian order. For little-endian targets, the vector element numbering is reversed, but the vmuleub, vmuloub, and vperm instructions still assume big-endian numbering. To account for this, we must adjust the permute control vector and reverse the order of the input registers on the vperm instruction. The existing test/CodeGen/PowerPC/vec_mul.ll is updated to be executed on powerpc64 and powerpc64le targets as well as the original powerpc (32-bit) target. llvm-svn: 210474
-
- Jun 09, 2014
-
-
Evgeniy Stepanov authored
llvm-svn: 210473
-
Evgeniy Stepanov authored
Makes origin propagation ignore literal undef operands, and, in general, any operand we don't have origin for. https://code.google.com/p/memory-sanitizer/issues/detail?id=56 llvm-svn: 210472
-
NAKAMURA Takumi authored
llvm-svn: 210471
-
Sasa Stankovic authored
load/store is in branch delay slot. Differential Revision: http://llvm-reviews.chandlerc.com/D4048 llvm-svn: 210470
-
Simon Atanasyan authored
llvm-svn: 210469
-
Andrea Di Biagio authored
This patch teaches the backend how to check for the 'NoSignedWrap' flag on binary operations to improve the emission of 'test' instructions. If the result of a binary operation is known not to overflow we know that resetting the Overflow flag is unnecessary and so we can avoid emitting the test instruction. Patch by Marcello Maggioni. llvm-svn: 210468
-
Andrea Di Biagio authored
This patch modifies SelectionDAGBuilder to construct SDNodes with associated NoSignedWrap, NoUnsignedWrap and Exact flags coming from IR BinaryOperator instructions. Added a new SDNode type called 'BinaryWithFlagsSDNode' to allow accessing nsw/nuw/exact flags during codegen. Patch by Marcello Maggioni. llvm-svn: 210467
-
Alexey Volkov authored
According to Intel Software Optimization Manual on Silvermont INC or DEC instructions require an additional uop to merge the flags. As a result, a branch instruction depending on an INC or a DEC instruction incurs a 1 cycle penalty. Differential Revision: http://reviews.llvm.org/D3990 llvm-svn: 210466
-
Evgeniy Stepanov authored
llvm-svn: 210465
-
Artyom Skrobov authored
llvm-svn: 210464
-
Evgeniy Stepanov authored
This should fix strtoimax/strtoumax on newer glibc. https://code.google.com/p/memory-sanitizer/issues/detail?id=36 llvm-svn: 210463
-
Jeroen Ketema authored
llvm-svn: 210462
-
Rui Ueyama authored
llvm-svn: 210461
-
Zoran Jovanovic authored
Differential Revision: http://reviews.llvm.org/D3822 llvm-svn: 210460
-
Evgeniy Stepanov authored
Instructions from __nodebug__ functions don't have file:line information even when inlined into no-nodebug functions. As a result, intrinsics (SSE and other) from <*intrin.h> clang headers _never_ have file:line information. With this change, an instruction without !dbg metadata gets one from the call instruction when inlined. Fixes PR19001. llvm-svn: 210459
-
Evgeniy Stepanov authored
llvm-svn: 210458
-
Evgeniy Stepanov authored
llvm-svn: 210457
-
Rui Ueyama authored
llvm-svn: 210456
-
Rui Ueyama authored
llvm-svn: 210455
-
Evgeniy Stepanov authored
This fixes a crash on MMX intrinsics, as well as a corner case in handling of all unsigned pack intrinsics. PR19953. llvm-svn: 210454
-
Matt Arsenault authored
llvm-svn: 210453
-
Evgeniy Stepanov authored
llvm-svn: 210452
-
Rui Ueyama authored
This reverts commit r210425 because the test added in the commit is broken. llvm-svn: 210451
-
Patrik Hagglund authored
llvm-svn: 210450
-
Bill Schmidt authored
The PowerPC vsumsws instruction, accessed via vec_sums, is defined architecturally with a big-endian bias, in that the second input vector and the result always reference big-endian element 3 (little-endian element 0). For ease of porting, the programmer wants elements 3 in both cases. To provide this semantics, for little endian we generate a permute for the second input vector prior to the vsumsws instruction, and generate a permute for the result vector following the vsumsws instruction. The correctness of this code is tested by the new sums.c test added in a previous patch, as well as the modifications to builtins-ppc-altivec.c in the present patch. llvm-svn: 210449
-
Craig Topper authored
llvm-svn: 210448
-
Craig Topper authored
llvm-svn: 210447
-
Chad Rosier authored
Patch by Dave Estes <cestes@codeaurora.org> http://reviews.llvm.org/D4037 llvm-svn: 210446
-
Chad Rosier authored
plus add. The shift can be folded into the add. This only effects codegen when the constant is 3. llvm-svn: 210445
-