[all-commits] [llvm/llvm-project] 2a832d: [AMDGPU] Add missing physical register check in SI...

yashssh via All-commits all-commits at lists.llvm.org
Tue Jan 24 00:55:06 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2a832d0f09f73faf46aae54ff73cdcd99a7bacf3
      https://github.com/llvm/llvm-project/commit/2a832d0f09f73faf46aae54ff73cdcd99a7bacf3
  Author: Yashwant Singh <Yashwant.Singh at amd.com>
  Date:   2023-01-24 (Tue, 24 Jan 2023)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
    A llvm/test/CodeGen/AMDGPU/fold-vgpr-phyreg.mir
    A llvm/test/CodeGen/AMDGPU/swdev373493.ll

  Log Message:
  -----------
  [AMDGPU] Add missing physical register check in SIFoldOperands::tryFoldLoad

tryFoldLoad() is not meant to work on physical registers moreover
use_nodbg_instructions(reg) makes the compiler buggy when called with
physical reg

Fix for SWDEV-373493

Reviewed By: arsenm

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




More information about the All-commits mailing list