[all-commits] [llvm/llvm-project] ec8c61: [AMDGPU] Allow multiple uses of the same literal

Jay Foad via All-commits all-commits at lists.llvm.org
Tue Apr 20 08:44:29 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ec8c61efdf9537c16f7f70a1cf6e8018b1d9c664
      https://github.com/llvm/llvm-project/commit/ec8c61efdf9537c16f7f70a1cf6e8018b1d9c664
  Author: Jay Foad <jay.foad at amd.com>
  Date:   2021-04-20 (Tue, 20 Apr 2021)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
    A llvm/test/CodeGen/AMDGPU/verify-duplicate-literal.mir

  Log Message:
  -----------
  [AMDGPU] Allow multiple uses of the same literal

In GFX10 VOP3 can have a literal, which opens up the possibility of two
operands using the same literal value, which is allowed and only counts
as one use of the constant bus.

AMDGPUAsmParser::validateConstantBusLimitations already knew about this
but SIInstrInfo::verifyInstruction did not.

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




More information about the All-commits mailing list