1. Feb 09, 2022
    • Matt Arsenault's avatar
      AMDGPU: Use reserved VGPR for AGPR spills to memory · f2c99ea4
      Matt Arsenault authored
      Previously would reuse the VGPR used for large frame offsets with the
      one needed for copying from the AGPR. Fix this by reusing the register
      we already reserved for handling AGPR to AGPR copies.
      f2c99ea4
    • Philip Reames's avatar
      [SCEV] Generalize SCEVEqualsPredicate to any compare [NFC] · c302f1e6
      Philip Reames authored
      PredicatedScalarEvolution has a predicate type for representing A == B.  This change generalizes it into something which can represent a A <pred> B.
      
      This generality is currently unused, but is motivated by a couple of recent cases which have come up.  In particular, I'm currently playing around with using this to simplify the runtime checking code in LoopVectorizer. Regardless of the outcome of that prototyping, generalizing the compare node seemed useful.
      c302f1e6
    • Nikita Popov's avatar
      [Mem2Reg] Check that load type matches alloca type · 074561a4
      Nikita Popov authored
      Alloca promotion can only deal with cases where the load/store
      types match the alloca type (it explicitly does not support
      bitcasted load/stores).
      
      With opaque pointers this is no longer enforced through the pointer
      type, so add an explicit check.
      074561a4
    • Matt Arsenault's avatar
      AMDGPU: Reserve v32 if we may need to copy between AGPRs on gfx908 · 8b2ca766
      Matt Arsenault authored
      We need to guarantee cheap copies between AGPRs, and unfortunately
      gfx908 cannot directly do this. Theoretically we could set the
      scavenger up with an emergency spill slot, but it also feels
      unreasonable to pay that cost for what was assumed to be a simple and
      cheap copy. Pick a register that doesn't conflict with any ABI
      registers.
      
      This does not address the same issue when copying from SGPR to AGPR
      for gfx90a (this coincidentally fixes it for gfx908), but that's less
      interesting since the register allocator shouldn't be proactively
      introducing such copies.
      
      One edge case I'm worried about is respecting the VGPR budget implied
      by amdgpu-waves-per-eu. If the theoretical upper bound of a function
      is 32 VGPRs, this will force the actual count to be 33.
      
      This is also broken if inline assembly uses/defs something in v32. The
      coalescer will eliminate the intermediate vreg between the def and
      use, and the introduced copy will clobber the user value.
      
      (cherry picked from commit 3335784ac2d587ff4eac04586e189532ae8b2607)
      8b2ca766
    • Matt Arsenault's avatar
      a7f60bfd
    • Louis Dionne's avatar
      [libc++] Add a Lit configuration for running back-deployment tests · 768b50df
      Louis Dionne authored
      This testing configuration links tests against one libc++ shared library,
      but runs them against another libc++ shared library. This makes sure that
      we can build applications against the libc++ provided in a recent SDK and
      back-deploy them to platforms containing older libc++ dylibs.
      
      It also switches the Apple CI script to using that new configuration
      instead of the legacy one.
      
      Differential Revision: https://reviews.llvm.org/D119195
      768b50df
  2. Feb 08, 2022
  3. Feb 09, 2022
  4. Feb 08, 2022