1. Jun 25, 2019
  2. Jun 24, 2019
    • Matt Arsenault's avatar
      CodeGen: Introduce a class for registers · e3a676e9
      Matt Arsenault authored
      Avoids using a plain unsigned for registers throughoug codegen.
      Doesn't attempt to change every register use, just something a little
      more than the set needed to build after changing the return type of
      MachineOperand::getReg().
      
      llvm-svn: 364191
      e3a676e9
    • Bjorn Pettersson's avatar
      [AMDGPU] Remove unused variable AllSGPRSpilledToVGPRs. NFC · 3260ef16
      Bjorn Pettersson authored
      Summary:
      Removing the unused variable AllSGPRSpilledToVGPRs in
      SIFrameLowering::processFunctionBeforeFrameFinalized
      to avoid
        error: variable 'AllSGPRSpilledToVGPRs' set but not used
        [-Werror=unused-but-set-variable]
      
      Reviewers: arsenm, nhaehnle
      
      Reviewed By: nhaehnle
      
      Subscribers: kzhuravl, jvesely, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, hiraditya, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D63721
      
      llvm-svn: 364190
      3260ef16
    • Alexey Bataev's avatar
      [OPENMP]Relax the test checks to pacify 32bit buildbots, NFC. · db26bcda
      Alexey Bataev authored
      llvm-svn: 364189
      db26bcda
    • Matt Arsenault's avatar
      Hexagon: Rename Register class · 2bc35b79
      Matt Arsenault authored
      This avoids a naming conflict in a future patch.
      
      llvm-svn: 364188
      2bc35b79
    • Sanjay Patel's avatar
      [InstCombine] reduce funnel-shift i16 X, X, 8 to bswap X · 89efefb1
      Sanjay Patel authored
      Prefer the more exact intrinsic to remove a use of the input value
      and possibly make further transforms easier (we will still need
      to match patterns with funnel-shift of wider types as pieces of
      bswap, especially if we want to canonicalize to funnel-shift with
      constant shift amount). Discussed in D46760.
      
      llvm-svn: 364187
      89efefb1
    • Matt Arsenault's avatar
      AMDGPU/GlobalISel: Fix RegBankSelect for s1 sext/zext/anyext · 5dbd9228
      Matt Arsenault authored
      This needs different handling if the source is known to be a valid
      condition or not. Handle turning it into shifts or a select during
      regbankselect.
      
      llvm-svn: 364186
      5dbd9228
    • Matt Arsenault's avatar
      AMDGPU: Fold frame index into MUBUF · 60957cb7
      Matt Arsenault authored
      This matters for byval uses outside of the entry block, which appear
      as copies.
      
      Previously, the only folding done was during selection, which could
      not see the underlying frame index. For any uses outside the entry
      block, the frame index was materialized in the entry block relative to
      the global scratch wave offset.
      
      This may produce worse code in cases where the offset ends up not
      fitting in the MUBUF offset field. A better heuristic would be helpfu
      for extreme frames.
      
      llvm-svn: 364185
      60957cb7