- Jun 11, 2014
-
-
Andrea Di Biagio authored
This patch slightly changes the algorithm introduced at revision 210477 to fix a problem where the algorithm was producing incorrect code for the VEX.256 encoded versions of horizontal add/sub. For these cases, we now try to split the two 256-bit vectors into 128-bit chunks before emitting horizontal add/sub dag nodes. Added a new test case into haddsub-2.ll. llvm-svn: 210545
-
Tom Stellard authored
il is legal for Hexagon, so I should have marked this as Expand for SELECT_CC when I removed setOperationAction(ISD::SELECT_CC, MVT::Other, Expand); in r210541. llvm-svn: 210544
-
Adam Nemet authored
Along with the corresponding intrinsic and tests. llvm-svn: 210543
-
Renato Golin authored
Previously, the basic block was searched for future uses of the base register, and if necessary any writeback to the base register was reset using a SUB instruction (e.g. before calling a function) just before such a use. However, this step happened *before* the merged LDM/STM instruction was built. So if there was (e.g.) a function call directly after the not-yet-formed LDM/STM, the pass would first insert a SUB instruction to reset the base register, and then (at the same location, incorrectly) insert the LDM/STM itself. This patch fixes PR19972. Patch by Moritz Roth. llvm-svn: 210542
-
Tom Stellard authored
The SelectionDAG bad a special case for ISD::SELECT_CC, where it would allow targets to specify: setOperationAction(ISD::SELECT_CC, MVT::Other, Expand); to indicate that they wanted to expand ISD::SELECT_CC for all types. This wasn't applied correctly everywhere, and it makes writing new DAG patterns with ISD::SELECT_CC difficult. llvm-svn: 210541
-
Tom Stellard authored
This prevents a future commit from regressing: test/CodeGen/R600/setcc-equivalent.ll llvm-svn: 210540
-
Tom Stellard authored
This consolidates code from the Hexagon, R600, and XCore targets. No functionality change intended. llvm-svn: 210539
-
- Jun 10, 2014
-
-
Tobias Grosser authored
llvm-svn: 210538
-
Daniel Jasper authored
Before: return { link: function() { f(); // } }; return { a: a, link: function() { f(); // } } After: return { link: function() { f(); // } }; return { a: a, link: function() { f(); // } }; llvm-svn: 210537 -
Bill Schmidt authored
Various masks on shufflevector instructions are recognizable as specific PowerPC instructions (vector pack, vector merge, etc.). There is existing code in PPCISelLowering.cpp to recognize the correct patterns for big endian code. The masks for these instructions are different for little endian code due to the big-endian numbering employed by these instructions. This patch adds the recognition code for little endian. I've added a new test case test/CodeGen/PowerPC/vec_shuffle_le.ll for this. The existing recognizer test (vec_shuffle.ll) is unnecessarily verbose and difficult to read, so I felt it was better to add a new test rather than modify the old one. llvm-svn: 210536
-
Chad Rosier authored
Patch by Ana Pazos<apazos@codeaurora.org>! llvm-svn: 210535
-
Alexander Potapenko authored
Clang's lit cfg already detects the currently selected SDK via "xcrun --show-sdk-path". The same thing should be done for compiler-rt tests, to make them work on recent OS X versions. Instead of duplicating the detection code, this patch extracts the detection function into a lit.util method. Patch by Kuba Brecka (kuba.brecka@gmail.com), reviewed at http://reviews.llvm.org/D4072 llvm-svn: 210534
-
Evgeniy Stepanov authored
Standard KVM ioctls don't pass currect ioctl_decode(). llvm-svn: 210533
-
Simon Atanasyan authored
No functional changes. llvm-svn: 210532
-
Simon Atanasyan authored
No functional changes. llvm-svn: 210531
-
Simon Atanasyan authored
is around non-archive. llvm-svn: 210530
-
Daniel Jasper authored
Before: aaaaaaaaaaa aaaaaaaaaaaaaaa = aaaaaaaaaaaaaaaaaaaaaaaaaa->aaaaaaaaa[0].aaaaaaa [0].aaaaaaaaaaaaaaaaaaaaaa(); After: aaaaaaaaaaa aaaaaaaaaaaaaaa = aaaaaaaaaaaaaaaaaaaaaaaaaa->aaaaaaaaa[0] .aaaaaaa[0] .aaaaaaaaaaaaaaaaaaaaaa(); llvm-svn: 210529 -
Artyom Skrobov authored
inverted condition codes (CINC, CINV, CNEG, CSET, and CSETM). Matching aliases based on "immediate classes", when disassembling, wasn't previously supported, hence adding MCOperandPredicate into class Operand, and implementing the support for it in AsmWriterEmitter. The parsing for those aliases was already custom, so just adding the missing condition into AArch64AsmParser::parseCondCode. llvm-svn: 210528
-
Artyom Skrobov authored
llvm-svn: 210527
-
Artyom Skrobov authored
llvm-svn: 210526
-
Tim Northover authored
As Ana Pazos pointed out, these have to be restored to their incoming values before a function returns; i.e. before the tail call. So they can't be used correctly as the destination register. llvm-svn: 210525
-
Tim Northover authored
This reverts commit r210523. It was committed prematurely without waiting for review. llvm-svn: 210524
-
Tim Northover authored
The C++ and C semantics of the compare_and_swap operations actually require us to return a boolean "success" value. In LLVM terms this means a second comparison of the output of "cmpxchg" against the input desired value. However, x86's "cmpxchg" instruction sets all flags for the comparison formed, so we can skip any secondary comparison. (N.b. this isn't true for cmpxchg8b/16b, which only set ZF). rdar://problem/13201607 llvm-svn: 210523
-
Daniel Jasper authored
Before: enum Fruit { // APPLE, PEAR }; After: enum Fruit { // APPLE, PEAR }; llvm-svn: 210522 -
Alp Toker authored
llvm-svn: 210521
-
Tim Northover authored
Previously we were abandonning the attempt, leading to some combination of extra work (when selection of a load/store fails completely) and inferior code (when this leads to a real memcpy call instead of inlining). rdar://problem/17187463 llvm-svn: 210520
-
Tim Northover authored
We were hitting an assert if FastISel couldn't create the load or store we requested. Currently this happens for large frame-local addresses, though CodeGen could be improved there. rdar://problem/17187463 llvm-svn: 210519
-
Alp Toker authored
Diagnostic mappings are used to calculate the final severity of diagnostic instances. Detangle the implementation to reflect the terminology used in documentation and bindings. No change in functionality. llvm-svn: 210518
-
Evgeniy Stepanov authored
llvm-svn: 210517
-
Eric Christopher authored
llvm-svn: 210516
-
Alp Toker authored
Doing so would be inconsistent with the common fallback case where backend diagnostics without source locations are emitted unconditionally. llvm-svn: 210515
-
Daniel Jasper authored
Before: return [ i, args... ]{}; After: return [i, args...] {}; llvm-svn: 210514 -
Daniel Jasper authored
With AlwaysSplitBeforeMultilineStrings, clang-format would not find any valid solution. llvm-svn: 210513
-
Alp Toker authored
Anyone enabling this warning would expect to hear about all occurrences including those in system headers that can cause non-reproducible builds. To achieve this, rework ShowInSystemHeader to remove broken unused mapping code that didn't make sense with a simpler and correct scheme. llvm-svn: 210512
-
Alp Toker authored
This GCC warning is useful for validating reproducible builds and might help when tracking down issues with modules too. llvm-svn: 210511
-
Alp Toker authored
Make sure grep catches the correct diagnostic, otherwise this test fails to detect broken functionality. llvm-svn: 210510
-
Simon Atanasyan authored
(section name, section index, full name) into the separate functions. No functional changes. llvm-svn: 210509
-
Craig Topper authored
llvm-svn: 210508
-
NAKAMURA Takumi authored
llvm-svn: 210507
-
Nick Kledzik authored
In -r mode the sections use the table used to parse .o files. Otherwise use final exectuable table. No functionality change. llvm-svn: 210506
-