summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove a stale comment from the test, NFC.Wei Mi2016-08-161-1/+0
| | | | llvm-svn: 278821
* [Asan] Unpoison red zones even if use-after-scope was disabled with runtime flagVitaly Buka2016-08-163-6/+11
| | | | | | | | | | | | Summary: PR27453 Reviewers: eugenis Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D23481 llvm-svn: 278818
* [InstCombine] use m_APInt in foldICmpWithConstant; NFCISanjay Patel2016-08-162-49/+46
| | | | | | | | | | | There's some formatting and pointer deref ugliness here that I intend to fix in subsequent patches. The overall goal is to refactor the obnoxiously long switch and incrementally remove the restriction to scalar types (allow folds for vector splats). This patch introduces the use of m_APInt which means the RHSV reference is now a pointer (and may have matched a vector splat), but the check of 'RHS' remains, so vector folds are disallowed and no functional change is intended. llvm-svn: 278816
* [Hexagon] Standardize vector predicate load/store pseudo instructionsKrzysztof Parzyszek2016-08-163-67/+32
| | | | | | | | | | | | - Remove unused instructions: LDriq_pred_vec_V6, STriq_pred_vec_V6, and the 128B counterparts. - Rename: LDriq_pred_V6 PS_vloadrq_ai LDriq_pred_V6_128B PS_vloadrq_ai_128B STriq_pred_V6 PS_vstorerq_ai STriq_pred_V6_128B PS_vstorerq_ai_128B llvm-svn: 278813
* [AArch64][GlobalISel] Select G_MUL.Ahmed Bougacha2016-08-163-0/+104
| | | | llvm-svn: 278810
* [GlobalISel] Fix G_MUL comment. NFC.Ahmed Bougacha2016-08-161-1/+1
| | | | llvm-svn: 278809
* [AArch64][GlobalISel] Factor out unsupported binop check. NFC.Ahmed Bougacha2016-08-161-40/+50
| | | | | | | We're going to need it for G_MUL, and, if other targets end up using something similar, we can easily put it in the generic selector. llvm-svn: 278808
* [ADCE] Modify data structures to support removing control flowDavid Callahan2016-08-161-36/+205
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: This is part of a serious of patches to evolve ADCE.cpp to support removing of unnecessary control flow. This patch changes the data structures to hold liveness information to support the additional information we will eventually need. In particular we now have a notion of basic blocks being live because they contain a live operations. This will eventually feed into control dependence analysis of which branches are live. We cater to getting from instructions to associated block information and from blocks to information about their terminators. This patch also changes the structure of the main loop of the algorithm so that it alternates propagating liveness between instructions and usign control dependence information to mark branches live. We force all terminators live for now until we add code to handlinge removing control flow in a later patch. No changes to effective behavior with this patch Previous patches: D23065 [ADCE] Refactor anticipating new functionality (NFC) D23102 [ADCE] Refactoring for new functionality (NFC) Reviewers: nadav, majnemer, mehdi_amini Subscribers: freik, twoh, llvm-commits Differential Revision: https://reviews.llvm.org/D23225 llvm-svn: 278807
* [Pipeliner] Fix an asssert due to invalid Phi in the epilogBrendon Cahoon2016-08-162-2/+45
| | | | | | | | | | | | The pipeliner was generating an invalid Phi name for an operand in the epilog block, which caused an assert in the live variable analysis pass. The fix is to the code that generates new Phis in the epilog block. In this case, there is an existing Phi that needs to be reused rather than creating a new Phi instruction. Differential Revision: https://reviews.llvm.org/D23513 llvm-svn: 278805
* [AArch64][GlobalISel] Select (variable) shifts.Ahmed Bougacha2016-08-163-0/+208
| | | | | | For now, no support for immediates. llvm-svn: 278804
* [AArch64][GlobalISel] Robustize select tests. NFC.Ahmed Bougacha2016-08-161-30/+70
| | | | | | Using the same register means nothing was checking for operand order. llvm-svn: 278803
* [AArch64][GlobalISel] Select p0 G_FRAME_INDEX.Ahmed Bougacha2016-08-164-2/+49
| | | | | | And mark it as legal. llvm-svn: 278802
* [GlobalISel] Mention pointers in LowLevelType.h. NFC.Ahmed Bougacha2016-08-161-1/+2
| | | | llvm-svn: 278801
* [x86] Refactor a PowerPC specific ctlz/srl transformation (NFC).Pierre Gousseau2016-08-164-13/+43
| | | | | | | | Following the discussion on D22038, this refactors a PowerPC specific setcc -> srl(ctlz) transformation so it can be used by other targets. Differential Revision: https://reviews.llvm.org/D23445 llvm-svn: 278799
* [X86][AVX] Fixed typo in zero element insertionSimon Pilgrim2016-08-161-1/+1
| | | | llvm-svn: 278798
* [Hexagon] Improve test to check for @PCREL, only run llc, not opt -> llc.Ron Lieberman2016-08-161-2/+2
| | | | llvm-svn: 278796
* [MemorySanitizer] [MIPS] Changed memory mapping to support pie executable.Sagar Thakur2016-08-161-2/+2
| | | | | | | Reviewed by eugenis Differential: D22994 llvm-svn: 278795
* [X86][SSE] Add support for combining v2f64 target shuffles to VZEXT_MOVL ↵Simon Pilgrim2016-08-162-8/+4
| | | | | | | | byte rotations The combine was only matching v2i64 as it assumed lowering to MOVQ - but we have v2f64 patterns that match in a similar fashion llvm-svn: 278794
* [X86][AVX512BW] Updated tests to demonstrate AVX512BW's inability to ↵Simon Pilgrim2016-08-163-2/+3135
| | | | | | vectorize v64i8 shifts llvm-svn: 278790
* Correct the upper bound for a CBZ/CBNZ branch target.Prakhar Bahuguna2016-08-162-3/+17
| | | | | | | | | | | | | Summary: Fix for the upper bound check that was causing a build failure. Reviewers: olista01, rengolin, t.p.northover Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D23501 llvm-svn: 278789
* [Thumb] Validate branch target for CBZ/CBNZ instructions.Prakhar Bahuguna2016-08-164-0/+47
| | | | | | | | | | | | | | | | | Summary: The assembler currently does not check the branch target for CBZ/CBNZ instructions, which only permit branching forwards with a positive offset. This adds validation for the branch target to ensure negative PC-relative offsets are not encoded into the instruction, whether specified as a literal or as an assembler symbol. Reviewers: rengolin, t.p.northover Subscribers: llvm-commits, rengolin Differential Revision: https://reviews.llvm.org/D23312 llvm-svn: 278788
* [X86][SSE] Add support for combining target shuffles to PALIGNR byte rotationsSimon Pilgrim2016-08-164-31/+74
| | | | llvm-svn: 278787
* [AVR] Fix compile errorsJob Noorman2016-08-162-5/+5
| | | | | | Differential Revision: https://reviews.llvm.org/D23450 llvm-svn: 278784
* [X86] Add xgetbv/xsetbv intrinsics to non-windows platformsGuy Blank2016-08-166-3/+109
| | | | | | Differential Revision: https://reviews.llvm.org/D21958 llvm-svn: 278782
* [InstSimplify] Fold gep (gep V, C), (xor V, -1) to C-1David Majnemer2016-08-163-14/+34
| | | | llvm-svn: 278779
* FunctionImport: missed one occurence of ImportListForModule to rename (NFC)Mehdi Amini2016-08-161-1/+1
| | | | llvm-svn: 278778
* FunctionImport: rename ImportsForModule to ImportList for consistency (NFC)Mehdi Amini2016-08-161-7/+7
| | | | llvm-svn: 278777
* [LTO] Simplify APIs and constify (NFC)Mehdi Amini2016-08-164-33/+29
| | | | | | | | | | | | | | | | | Summary: Multiple APIs were taking a StringMap for the ImportLists containing the entries for for all the modules while operating on a single entry for the current module. Instead we can pass the desired ModuleImport directly. Also some of the APIs were not const, I believe just to be able to use operator[] on the StringMap. Reviewers: tejohnson Subscribers: llvm-commits, mehdi_amini Differential Revision: https://reviews.llvm.org/D23537 llvm-svn: 278776
* [InstCombine] add tests for missing vector icmp foldsSanjay Patel2016-08-162-0/+36
| | | | llvm-svn: 278768
* [LTO] Rename variables with meaningul names, i.e. more than one character (NFC)Mehdi Amini2016-08-161-15/+16
| | | | llvm-svn: 278766
* [InstCombine] add tests for missing vector icmp foldsSanjay Patel2016-08-161-0/+72
| | | | llvm-svn: 278765
* [AMDGPU] Give enum an explicit 64-bit type to fix MSVC 2013 failuresReid Kleckner2016-08-151-1/+1
| | | | | | | | | | Recall that MSVC always gives enums the type 'int', nothing else. MSVC 2015 does not appear to have this problem anymore. Clang-cl -Wmicrosoft-enum-value flags this, FWIW, so now I have a true positive for my warning. :) llvm-svn: 278762
* [ThinLTO] Fix temp file dumping, enable via llvm-lto and test itTeresa Johnson2016-08-153-3/+18
| | | | | | | | | | | | | | | | | | | Summary: Fixed a bug in ThinLTOCodeGenerator's temp file dumping. The Twine needs to be passed directly as an argument, or a copy saved into a std::string. It doesn't seem there are any consumers of this, so I added a new option to llvm-lto to enable saving of temp files during ThinLTO, and augmented a test to use it to check post-import but pre-opt bitcode. Reviewers: mehdi_amini Subscribers: llvm-commits, mehdi_amini Differential Revision: https://reviews.llvm.org/D23525 llvm-svn: 278761
* Don't use %llc_dwarf with -mtriple, they don't combineReid Kleckner2016-08-151-1/+1
| | | | llvm-svn: 278758
* [InstCombine] add tests for missing vector icmp foldsSanjay Patel2016-08-151-0/+72
| | | | llvm-svn: 278757
* Linker: Avoid some ridiculous indentation by using a temporary. NFCJustin Bogner2016-08-151-12/+11
| | | | | | | This was indented really awkwardly, and clang-format didn't seem to know how to do any better. Avoid the issue with a temporary variable. llvm-svn: 278756
* Adding the triple for test comitted with r278703.Wolfgang Pieb2016-08-151-1/+2
| | | | llvm-svn: 278755
* [sancov] extracting AArch64 test to a separate file.Mike Aizatsky2016-08-152-4/+5
| | | | llvm-svn: 278754
* [ADT] Fix DepthFirstIterator's std::iterator base to have normal typedefsTim Shen2016-08-152-10/+6
| | | | | | | | | | | | Summary: This is similiar to r278752, where I found that the std::iterator<...> base can be normal. Reviewers: dblaikie Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D23527 llvm-svn: 278753
* [ADT] Change PostOrderIterator to use NodeRef. NFC.Tim Shen2016-08-155-46/+45
| | | | | | | | | | Reviewers: dblaikie Subscribers: mzolotukhin, llvm-commits Differential Revision: https://reviews.llvm.org/D23522 llvm-svn: 278752
* [InstCombine] add tests for missing vector icmp foldsSanjay Patel2016-08-151-8/+21
| | | | llvm-svn: 278751
* Fix typo in lowering for fp128 ueq.Eli Friedman2016-08-152-1/+23
| | | | | | | | Regression from r259791. Differential Revision: https://reviews.llvm.org/D23374 llvm-svn: 278750
* AMDGPU/R600: Convert buffer id to VTX_READ inputJan Vesely2016-08-155-198/+146
| | | | | | | | | Use patterns instead of multiple instructions Add buffer id to asm string https://reviews.llvm.org/D22650 llvm-svn: 278749
* Really fix the issue with 502957cc9cf805dc6093950e8cdcd0db4969d933. Windows ↵Hemant Kulkarni2016-08-151-0/+1
| | | | | | %p and FileCheck limitations makes the test linux only llvm-svn: 278748
* [InstCombine] add tests for missing vector icmp foldsSanjay Patel2016-08-151-0/+34
| | | | llvm-svn: 278747
* GlobalISel: support loads and stores of strange types.Tim Northover2016-08-155-16/+41
| | | | | | | Before we mischaracterized structs and i1 types as a scalar with size 0 in various ways. llvm-svn: 278744
* Remove unnecessary flag from new testTeresa Johnson2016-08-151-1/+1
| | | | | | | | Remove -disable-inlining flag that snuck into the test I added for r278739. It doesn't have an effect in ThinLTO mode (something that should be fixed), but in any case the checks depend on inlining currently. llvm-svn: 278743
* update tests to use FileCheck and exact checkingSanjay Patel2016-08-151-10/+25
| | | | llvm-svn: 278741
* Revert "[ValueTracking] Improve ValueTracking on left shift with nsw flag"Sanjoy Das2016-08-152-37/+4
| | | | | | This reverts commit r278172. It causes PR28946. llvm-svn: 278740
* [ThinLTO] Remove functions resolved to available_externally from comdatsTeresa Johnson2016-08-153-0/+45
| | | | | | | | | | | | | | | | Summary: thinLTOResolveWeakForLinkerModule needs to drop any preempted weak symbols that were converted to available_externally from comdats, otherwise we will get a verification failure (since available_externally is a declaration for the linker, and no declarations can be in a comdat). Reviewers: mehdi_amini Subscribers: llvm-commits, mehdi_amini Differential Revision: https://reviews.llvm.org/D23015 llvm-svn: 278739
OpenPOWER on IntegriCloud