[all-commits] [llvm/llvm-project] 742041: [AMDGPU] Check if register is non-null before call...

Sergei Barannikov via All-commits all-commits at lists.llvm.org
Wed May 24 00:32:26 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 74204138f4ebd53e4cb3ef4c49ac9c521b8d21a8
      https://github.com/llvm/llvm-project/commit/74204138f4ebd53e4cb3ef4c49ac9c521b8d21a8
  Author: Sergei Barannikov <barannikov88 at gmail.com>
  Date:   2023-05-24 (Wed, 24 May 2023)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIFrameLowering.cpp

  Log Message:
  -----------
  [AMDGPU] Check if register is non-null before calling isSubRegisterEq (NFCI)

D151036 adds an assertions that prohibits iterating over sub- and
super-registers of a null register. This is already the case when
iterating over register units of a null register, and worked by
accident for sub- and super-registers.

Reviewed By: foad

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




More information about the All-commits mailing list