1. Sep 29, 2016
  2. Sep 28, 2016
    • Marina Yatsina's avatar
      [x86] Accept 'retn' as an alias to 'ret[lqw]'\'ret' (At&t\Intel) · 76bfc667
      Marina Yatsina authored
      Implement 'retn' simply by aliasing it to the relevant 'ret' instruction
      
      Commit on behalf of coby
      
      Differential Revision: https://reviews.llvm.org/D24346
      
      llvm-svn: 282601
      76bfc667
    • Nirav Dave's avatar
      In visitSTORE, always use FindBetterChain, rather than only when UseAA is enabled. · e17e055b
      Nirav Dave authored
        Simplify Consecutive Merge Store Candidate Search
      
        Now that address aliasing is much less conservative, push through
        simplified store merging search which only checks for parallel stores
        through the chain subgraph. This is cleaner as the separation of
        non-interfering loads/stores from the store-merging logic.
      
        Whem merging stores, search up the chain through a single load, and
        finds all possible stores by looking down from through a load and a
        TokenFactor to all stores visited. This improves the quality of the
        output SelectionDAG and generally the output CodeGen (with some
        exceptions).
      
        Additional Minor Changes:
      
          1. Finishes removing unused AliasLoad code
          2. Unifies the the chain aggregation in the merged stores across
             code paths
          3. Re-add the Store node to the worklist after calling
             SimplifyDemandedBits.
          4. Increase GatherAllAliasesMaxDepth from 6 to 18. That number is
             arbitrary, but seemed sufficient to not cause regressions in
             tests.
      
        This finishes the change Matt Arsenault started in r246307 and
        jyknight's original patch.
      
        Many tests required some changes as memory operations are now
        reorderable. Some tests relying on the order were changed to use
        volatile memory operations
      
        Noteworthy tests:
      
          CodeGen/AArch64/argument-blocks.ll -
            It's not entirely clear what the test_varargs_stackalign test is
            supposed to be asserting, but the new code looks right.
      
          CodeGen/AArch64/arm64-memset-inline.lli -
          CodeGen/AArch64/arm64-stur.ll -
          CodeGen/ARM/memset-inline.ll -
            The backend now generates *worse* code due to store merging
            succeeding, as we do do a 16-byte constant-zero store efficiently.
      
          CodeGen/AArch64/merge-store.ll -
            Improved, but there still seems to be an extraneous vector insert
            from an element to itself?
      
          CodeGen/PowerPC/ppc64-align-long-double.ll -
            Worse code emitted in this case, due to the improved store->load
            forwarding.
      
          CodeGen/X86/dag-merge-fast-accesses.ll -
          CodeGen/X86/MergeConsecutiveStores.ll -
          CodeGen/X86/stores-merging.ll -
          CodeGen/Mips/load-store-left-right.ll -
            Restored correct merging of non-aligned stores
      
          CodeGen/AMDGPU/promote-alloca-stored-pointer-value.ll -
            Improved. Correctly merges buffer_store_dword calls
      
          CodeGen/AMDGPU/si-triv-disjoint-mem-access.ll -
            Improved. Sidesteps loading a stored value and merges two stores
      
          CodeGen/X86/pr18023.ll -
            This test has been removed, as it was asserting incorrect
            behavior. Non-volatile stores *CAN* be moved past volatile loads,
            and now are.
      
          CodeGen/X86/vector-idiv.ll -
          CodeGen/X86/vector-lzcnt-128.ll -
            It's basically impossible to tell what these tests are actually
            testing. But, looks like the code got better due to the memory
            operations being recognized as non-aliasing.
      
          CodeGen/X86/win32-eh.ll -
            Both loads of the securitycookie are now merged.
      
          CodeGen/AMDGPU/vgpr-spill-emergency-stack-slot-compute.ll -
            This test appears to work but no longer exhibits the spill
            behavior.
      
      Reviewers: arsenm, hfinkel, tstellarAMD, nhaehnle, jyknight
      
      Subscribers: wdng, nhaehnle, nemanjai, arsenm, weimingz, niravd, RKSimon, aemerson, qcolombet, resistor, tstellarAMD, t.p.northover, spatel
      
      Differential Revision: https://reviews.llvm.org/D14834
      
      llvm-svn: 282600
      e17e055b
    • Ed Maste's avatar
      libunwind: Add OpenBSD case for _Unwind_Ptr typedef · a2ebee6f
      Ed Maste authored
      Patch by Mark Kettenis
      
      llvm-svn: 282599
      a2ebee6f
    • Dylan McKay's avatar
      [AVR] Import the LLVM namespace inside AVRMCTargetDesc.cpp · 536239f1
      Dylan McKay authored
      llvm-svn: 282598
      536239f1
    • Dylan McKay's avatar
      [AVR] Add AVRMCTargetDesc.cpp · e7620948
      Dylan McKay authored
      Summary:
      This adds the AVRMCTargetDesc file in tree. It allows creation of the
      core classes used in the backend.
      
      Reviewers: arsenm, kparzysz
      
      Subscribers: wdng, beanz, mgorny
      
      Differential Revision: https://reviews.llvm.org/D25023
      
      llvm-svn: 282597
      e7620948
    • Petr Hosek's avatar
      [ELF] Support -z max-page-size option · 997f8838
      Petr Hosek authored
      This options issupported by both BFD ld and gold and allows
      overriding the max page size whose default values are defined by
      the target.
      
      https://llvm.org/bugs/show_bug.cgi?id=30541
      
      Differential Revision: https://reviews.llvm.org/D24891
      
      llvm-svn: 282596
      997f8838
    • George Rimar's avatar
      [ELF] - Created new "Invalid" subfolder for testcases. · dd381c39
      George Rimar authored
      This subfolder just like "linkerscript" subfolder keeps
      testcases with invalid input. According to PR30540 it seems
      we might have many new ones soon, so it is seems reasonable to 
      separate them from regular testcases.
      
      Differential revision: https://reviews.llvm.org/D25010
      
      llvm-svn: 282595
      dd381c39