[all-commits] [llvm/llvm-project] 88149f: [AMDGPU][GFX908] IndirectCopyToAGPR: Confirm modif...

Jeffrey Byrnes via All-commits all-commits at lists.llvm.org
Fri May 12 12:59:11 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 88149fb3f4a8a7b86803823078d5b9ccddebba7b
      https://github.com/llvm/llvm-project/commit/88149fb3f4a8a7b86803823078d5b9ccddebba7b
  Author: Jeffrey Byrnes <JeffreyByrnes at amd.com>
  Date:   2023-05-12 (Fri, 12 May 2023)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
    M llvm/test/CodeGen/AMDGPU/accvgpr-copy.mir

  Log Message:
  -----------
  [AMDGPU][GFX908] IndirectCopyToAGPR: Confirm modified register is dst reg of accvgpr_write

IndirectCopyToAGPR should be reworked as to avoid optimizing during copy lowering. However, as it stands, the code is buggy. This patch replaces the call to definesRegister with modifiesRegister, and confirms that the dest reg of the found accvgpr_write is in fact the src reg of our copy.

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

Change-Id: Id8a61659ac15565dcb970069d0624f0925a46e6d




More information about the All-commits mailing list