1. Nov 23, 2016
  2. Nov 22, 2016
    • Zvi Rackover's avatar
      9a355219
    • Zvi Rackover's avatar
      [X86] Remove dead code from LowerVectorBroadcast · 0aa1c32d
      Zvi Rackover authored
      Summary: Splat vectors are canonicalized to BUILD_VECTOR's so the code can be simplified. NFC-ish.
      
      Reviewers: craig.topper, delena, RKSimon, andreadb
      
      Subscribers: RKSimon, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D26678
      
      llvm-svn: 287643
      0aa1c32d
    • Chad Rosier's avatar
      [AArch64] Set the max interleave factor for Falkor. · ecc77273
      Chad Rosier authored
      llvm-svn: 287642
      ecc77273
    • Chad Rosier's avatar
      [AArch64] Maximize 80-column. NFC. · 2abc29c5
      Chad Rosier authored
      llvm-svn: 287640
      2abc29c5
    • Eric Liu's avatar
      Make llvm::Error generated from replacement interfaces more specific. · e86a5f4c
      Eric Liu authored
      Summary:
      The new error information contains the type of error (e.g. overlap or bad file path)
      and the replacement(s) that is causing the error. This enables us to resolve some errors.
      For example, for insertion at the same location conflict, we need to know the
      existing replacement which conflicts with the new replacement in order to calculate
      the new position to be insert before/after the existing replacement (for merging).
      
      Reviewers: klimek, bkramer
      
      Subscribers: djasper, cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D26853
      
      llvm-svn: 287639
      e86a5f4c
    • Simon Pilgrim's avatar
      Fix line endings · d70c03ad
      Simon Pilgrim authored
      llvm-svn: 287638
      d70c03ad
    • Benjamin Kramer's avatar
      [wasm] hack around test failure after r287553. · ee8c585d
      Benjamin Kramer authored
      This test is very brittle as small changes to block layout break the
      check patterns. Hack around a change one more time.
      
      llvm-svn: 287637
      ee8c585d
    • Sam McCall's avatar
      Improve detection of global vs local variables · 30621391
      Sam McCall authored
      Summary:
      Improve detection of global vs local variables.
      
      Currently when a global variable is optimized out or otherwise has an unknown
      location (DW_AT_location is empty) it gets reported as local.
      
      I added two new heuristics:
       - if a mangled name is present, the variable is global (or static)
       - if DW_AT_location is present but invalid, the variable is global (or static)
      
      Subscribers: lldb-commits
      
      Differential Revision: https://reviews.llvm.org/D26908
      
      llvm-svn: 287636
      30621391
    • Simon Pilgrim's avatar
      [SelectionDAG] ComputeNumSignBits of TRUNCATE operations · 72e43570
      Simon Pilgrim authored
      Add basic ComputeNumSignBits support for TRUNCATE ops for cases where the source's number of sign bits overlaps with the truncated size.
      
      Improves X86 SIGN_EXTEND_IN_REG vector cases which were needlessly sign extending boolean vector results.
      
      Differential Revision: https://reviews.llvm.org/D26851
      
      llvm-svn: 287635
      72e43570
    • Dmitry Vyukov's avatar
      tsan: fix build after 287632 · 9c5bab23
      Dmitry Vyukov authored
      1. Mac does not have MAP_32BIT.
      Define it to 0 if it is not defined.
      
      2. We are lacking nolibc stub for ListOfModules::init.
      Add it.
      
      llvm-svn: 287634
      9c5bab23
    • Axel Naumann's avatar
      Missing initializer. · b920aa0f
      Axel Naumann authored
      llvm-svn: 287633
      b920aa0f
    • Dmitry Vyukov's avatar
      tsan: switch libignore from /proc/self/maps to dl_iterate_phdr · 5c5d4766
      Dmitry Vyukov authored
      /proc/self/maps can't be read atomically, this leads to episodic
      crashes in libignore as it thinks that a module is loaded twice.
      See the new test for an example.
      dl_iterate_phdr does not have this problem.
      Switch libignore to dl_iterate_phdr.
      
      llvm-svn: 287632
      5c5d4766
    • Omair Javaid's avatar
      Fix build failure on Linux and BSD by reverting r287597 · 99a318e1
      Omair Javaid authored
      Linux and BSD builds failing after this changes from rev 287597.
      
      llvm-svn: 287631
      99a318e1
    • Coby Tayree's avatar
      [AVX512][inline-asm] Fix AVX512 inline assembly instruction resolution when... · 49b3733d
      Coby Tayree authored
      [AVX512][inline-asm] Fix AVX512 inline assembly instruction resolution when the size qualifier of a memory operand is not specified explicitly.
      
      This commit handles cases where the size qualifier of an indirect memory reference operand in Intel syntax is missing (e.g. "vaddps xmm1, xmm2, [a]").
      
      GCC will deduce the size qualifier for AVX512 vector and broadcast memory operands based on the possible matches:
      "vaddps xmm1, xmm2, [a]" matches only “XMMWORD PTR” qualifier.
      "vaddps xmm1, xmm2, [a]{1to4}" matches only “DWORD PTR” qualifier.
      
      This is different from the current behavior of LLVM, which deduces the size qualifier based on the size of the memory operand.
      For "vaddps xmm1, xmm2, [a]"
      "char a;" will imply "BYTE PTR" qualifier
      "short a;" will imply "WORD PTR" qualifier.
      
      This commit aligns LLVM to GCC’s behavior.
      
      This is the LLVM part of the review.
      The Clang part of the review: https://reviews.llvm.org/D26587
      
      Differential Revision: https://reviews.llvm.org/D26586
      
      llvm-svn: 287630
      49b3733d
    • Dmitry Vyukov's avatar
      tsan: mark cur_thread_placeholder definition as initial-exec · 8b2ddfeb
      Dmitry Vyukov authored
      See https://sourceware.org/bugzilla/show_bug.cgi?id=20805 and
      https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78294 for context.
      Previously we marked only declaration as initial-exec. But compilers treat
      initial-exec attribute somewhat differently. Mark definition as well.
      
      llvm-svn: 287629
      8b2ddfeb
    • Adam Nemet's avatar
      Rename option to -lto-pass-remarks-output · 43018fdb
      Adam Nemet authored
      The new option -pass-remarks-output broke LLVM_LINK_LLVM_DYLIB because
      of the duplicate option name with opt.
      
      llvm-svn: 287628
      43018fdb
    • Adam Nemet's avatar
      Rename option to -lto-pass-remarks-output · de33651b
      Adam Nemet authored
      The new option -pass-remarks-output broke LLVM_LINK_LLVM_DYLIB because
      of the duplicate option name with opt.
      
      llvm-svn: 287627
      de33651b
    • Tobias Grosser's avatar
      [test] Simplify test case by removing unreferenced instructions [NFC] · d51a945f
      Tobias Grosser authored
      Drop instructions that do not influence the memory impact of a basic block.
      They are not needed to reproduce the original bug (verified) and will cause
      random test noise if we would decide to only model the instructions that
      have visible side-effects.
      
      llvm-svn: 287626
      d51a945f
    • Tobias Grosser's avatar
      [test] Ensure important basic blocks in test case have side effects · 88c025e8
      Tobias Grosser authored
      Add two store instructions at the end of basic blocks that are required to
      reproduce the original bug to ensure we always process and model these basic
      blocks. This makes this test case stable even in case we would decide to bail
      out early of basic blocks which do not modify the global state. Also add
      additional check lines to verify how we model the basic block.
      
      llvm-svn: 287625
      88c025e8
    • Craig Topper's avatar
      [TableGen][ISel] When factoring ScopeMatcher, if the child of the ScopeMatcher... · 3dc06675
      Craig Topper authored
      [TableGen][ISel] When factoring ScopeMatcher, if the child of the ScopeMatcher we're working on is also a ScopeMatcher, merge all its children into the one we're working on.
      
      There were several cases in X86 where we were unable to fully factor a ScopeMatcher but created nested ScopeMatchers for some portions of it. Then we created a SwitchType that split it up and further factored it so that we ended up with something like this:
      
      SwitchType
        Scope
          Scope
            Sequence of matchers
            Some other sequence of matchers
          EndScope
          Another sequence of matchers
        EndScope
      ...Next type
      
      This change turns it into this:
      
      SwitchType
        Scope
          Sequence of matchers
          Some other sequence of matchers
          Another sequence of matchers
        EndScope
      ...Next type
      
      Several other in-tree targets had similar nested scopes like this. Overall this doesn't save many bytes, but makes the isel output a little more regular.
      
      llvm-svn: 287624
      3dc06675
    • Tobias Grosser's avatar
      test: add more details to non-affine test case · 07ce9a0b
      Tobias Grosser authored
      We add CHECK lines to this test case to make it easier to see the difference
      between affine and non-affine memory accesses. We also change the test case to
      use a parameteric index expression as otherwise our range analysis will
      understand that the non-affine memory access can only access input[1],
      which makes it difficult to see that the memory access is in-fact modeled as
      non-affine access.
      
      llvm-svn: 287623
      07ce9a0b
    • Craig Topper's avatar
      [X86] Remove alternate CodeGenOnly version of (v)movq that declared the load... · 3dcf45f0
      Craig Topper authored
      [X86] Remove alternate CodeGenOnly version of (v)movq that declared the load size as i128mem. Change all uses to the use the i64mem version.
      
      I'm sure this caused the load size to misprint in Intel syntax output. We were also inconsistent about which patterns used which instruction between VEX and EVEX.
      
      There are two different reg/reg versions of movq, one from a GPR and one from the lower 64-bits of an XMM register. This changes the loading folding table to use the single i64mem memory form for folding both cases. But we need to use TB_NO_REVERSE to prevent a duplicate entry in the unfolding table.
      
      llvm-svn: 287622
      3dcf45f0
    • Craig Topper's avatar
      [AVX-512] Add support for commuting VPERMT2(B/W/D/Q/PS/PD) to/from VPERMI2(B/W/D/Q/PS/PD). · cada9f22
      Craig Topper authored
      Summary:
      The index and one of the table operands can be swapped by changing the opcode to the other version. Neither of these operands are the one that can load from memory so this can't be used to increase memory folding opportunities.
      
      We need to handle the unmasked forms and the kz forms. Since the load operand isn't being commuted we can commute the load and broadcast instructions too.
      
      Reviewers: igorb, delena, Ayal, Farhana, RKSimon
      
      Subscribers: llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D25652
      
      llvm-svn: 287621
      cada9f22
    • Rui Ueyama's avatar
      Inline small function. NFC. · 81a4b26b
      Rui Ueyama authored
      llvm-svn: 287620
      81a4b26b