1. Oct 25, 2016
  2. Oct 24, 2016
    • Geoff Berry's avatar
      [EarlyCSE] Optimize MemoryPhis and reduce memory clobber queries w/ MemorySSA · 68154687
      Geoff Berry authored
      Summary:
      When using MemorySSA, re-optimize MemoryPhis when removing a store since
      this may create MemoryPhis with all identical arguments.
      
      Also, when using MemorySSA to check if two MemoryUses are reading from
      the same version of the heap, use the defining access instead of calling
      getClobberingAccess, since the latter can currently result in many more
      AA calls.  Once the MemorySSA use optimization tracking changes are
      done, we can remove this limitation, which should result in more loads
      being CSE'd.
      
      Reviewers: dberlin
      
      Subscribers: mcrosier, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D25881
      
      llvm-svn: 284984
      68154687
    • Ehsan Amiri's avatar
      [PPC] Better codegen for AND, ANY_EXT, SRL sequence · 1f31e915
      Ehsan Amiri authored
      https://reviews.llvm.org/D24924
      
      This improves the code generated for a sequence of AND, ANY_EXT, SRL instructions. This is a targetted fix for this special pattern. The pattern is generated by target independet dag combiner and so a more general fix may not be necessary. If we come across other similar cases, some ideas for handling it are discussed on the code review.
      
      llvm-svn: 284983
      1f31e915
    • Sanjay Patel's avatar
      [x86] regenerate checks · 7b12e367
      Sanjay Patel authored
      llvm-svn: 284982
      7b12e367
    • Pavel Labath's avatar
      Fix arm64 sub-register definitions · 7a8ba4ff
      Pavel Labath authored
      The "value regs" field was filled incorrectly. It is supposed to list the
      registers that *this* register is a sub-register of, not the other way around.
      This manifested itself in "register read" showing only the smaller sub-registers
      (and a bunch of tests not passing). I am not sure if the "invalidates" field is
      correct either, but it's usage seems to be inconsistent, so I'll leave that as-is
      for now.
      
      llvm-svn: 284981
      7a8ba4ff
    • Nicolai Haehnle's avatar
      AMDGPU: Fix Two Address problems with v_movreld · a785209b
      Nicolai Haehnle authored
      Summary:
      The v_movreld machine instruction is used with three operands that are
      in a sense tied to each other (the explicit VGPR_32 def and the implicit
      VGPR_NN def and use). There is no way to express that using the currently
      available operand bits, and indeed there are cases where the Two Address
      instructions pass does the wrong thing.
      
      This patch introduces a new set of pseudo instructions that are identical
      in intended semantics as v_movreld, but they only have two tied operands.
      
      Having to add a new set of pseudo instructions is admittedly annoying, but
      it's a fairly straightforward and solid approach. The only alternative I
      see is to try to teach the Two Address instructions pass about Three Address
      instructions, and I'm afraid that's trickier and is going to end up more
      fragile.
      
      Note that v_movrels does not suffer from this problem, and so this patch
      does not touch it.
      
      This fixes several GL45-CTS.shaders.indexing.* tests.
      
      Reviewers: tstellarAMD, arsenm
      
      Subscribers: kzhuravl, wdng, yaxunl, llvm-commits, tony-tye
      
      Differential Revision: https://reviews.llvm.org/D25633
      
      llvm-svn: 284980
      a785209b
    • Nico Weber's avatar
    • Nirav Dave's avatar
      [MC] Fix Various End Of Line Comment checkings · 1a9044b7
      Nirav Dave authored
      Fix AsmParser lines to correctly handle end-of-line pre-processor
      comments parsing when '#' is not the assembly line comment prefix.
      
      Reviewers: rnk
      
      Subscribers: llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D25567
      
      llvm-svn: 284978
      1a9044b7
    • Pavel Labath's avatar
      [Chrono] Fix !HAVE_FUTIMENS build · 676a875b
      Pavel Labath authored
      If we don't have futimens(), we fall back to futimes(), which only supports
      microsecond timestamps. In that case, we need to explicitly cast away the extra
      precision in setLastModificationAndAccessTime().
      
      llvm-svn: 284977
      676a875b
    • Pavel Labath's avatar
      Reformat RegisterInfos_arm64 into a table. NFC · 183098ca
      Pavel Labath authored
      llvm-svn: 284976
      183098ca
    • Pavel Labath's avatar
      Remove unused #includes of TimeValue.h. NFC. · 51c454c1
      Pavel Labath authored
      llvm-svn: 284975
      51c454c1
    • Pavel Labath's avatar
      [Object] Replace TimeValue with std::chrono · bff47b51
      Pavel Labath authored
      Summary:
      Most of the changes are very straight-forward. The only choice I had to make was
      to use second-precision time points in the Archive classes. I did this because
      the archive files use that precision in the on-disk representation anyway.
      
      Reviewers: rafael, zturner
      
      Subscribers: llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D25773
      
      llvm-svn: 284974
      bff47b51
    • Joel Jones's avatar
      AArch64 ILP32 relocations for assembly and ELF · 504bf334
      Joel Jones authored
      Summary:
      Add relocations for AArch64 ILP32. Includes:
        - Addition of definitions for R_AARCH32_*
        - Definition of new -target-abi: ilp32
        - Definition of data layout string
        - Tests for added relocations. Not comprehensive, but matches
          existing tests for 64-bit. Renames "CHECK-OBJ" to "CHECK-OBJ-LP64".
        - Tests for llvm-readobj
      
      Reviewers: zatrazz, peter.smith, echristo, t.p.northover
      
      Subscribers: aemerson, rengolin, mehdi_amini
      
      Differential Revision: https://reviews.llvm.org/D25159
      
      llvm-svn: 284973
      504bf334
    • Krzysztof Parzyszek's avatar
      [RDF] Add default move constructors/assignment operators · f74683f9
      Krzysztof Parzyszek authored
      llvm-svn: 284972
      f74683f9
    • Pablo Barrio's avatar
      [JumpThreading] Unfold selects that depend on the same condition · f9e0d0b7
      Pablo Barrio authored
      Summary:
      These are good candidates for jump threading. This enables later opts
      (such as InstCombine) to combine instructions from the selects with
      instructions out of the selects. SimplifyCFG will fold the select
      again if unfolding wasn't worth it.
      
      Patch by James Molloy and Pablo Barrio.
      
      Reviewers: reames, bkramer, mcrosier, gberry, haicheng, jmolloy, sebpop
      
      Subscribers: jojo, rengolin, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D25477
      
      llvm-svn: 284971
      f9e0d0b7