[all-commits] [llvm/llvm-project] f3fe44: [AMDGPU] Fix too many constants with flat scratch

Sebastian Neubauer via All-commits all-commits at lists.llvm.org
Thu Aug 19 23:34:19 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f3fe44fa05a35c2d2c273690f360103f79b90fc3
      https://github.com/llvm/llvm-project/commit/f3fe44fa05a35c2d2c273690f360103f79b90fc3
  Author: Sebastian Neubauer <Sebastian.Neubauer at amd.com>
  Date:   2021-08-20 (Fri, 20 Aug 2021)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
    M llvm/test/CodeGen/AMDGPU/flat-scratch.ll

  Log Message:
  -----------
  [AMDGPU] Fix too many constants with flat scratch

Prevent SIFoldOperands from creating SALU instructions with a constant
and a frame index. Previously, only one operand was checked to be a
frame index, leading to too many constants when flat scratch is enabled
and stack offsets are large.

Differential Revision: https://reviews.llvm.org/D108368




More information about the All-commits mailing list