[all-commits] [llvm/llvm-project] 437402: [MIPS] Check if register is non-null before callin...

Sergei Barannikov via All-commits all-commits at lists.llvm.org
Wed May 24 20:34:02 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4374026d6da23dbb6b9c2e4fca65cdf198ee1e0f
      https://github.com/llvm/llvm-project/commit/4374026d6da23dbb6b9c2e4fca65cdf198ee1e0f
  Author: Sergei Barannikov <barannikov88 at gmail.com>
  Date:   2023-05-25 (Thu, 25 May 2023)

  Changed paths:
    M llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp

  Log Message:
  -----------
  [MIPS] Check if register is non-null before calling isSuperOrSubRegisterEq (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: MaskRay

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




More information about the All-commits mailing list