[all-commits] [llvm/llvm-project] 32f909: [TableGen][GlobalISel] Skip REG_SEQUENCE with inco...

Prerona Chaudhuri via All-commits all-commits at lists.llvm.org
Thu May 7 02:05:54 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 32f909e218dd693907a4c91fac5df5ac33aff660
      https://github.com/llvm/llvm-project/commit/32f909e218dd693907a4c91fac5df5ac33aff660
  Author: Prerona Chaudhuri <pchaudhuri at nvidia.com>
  Date:   2026-05-07 (Thu, 07 May 2026)

  Changed paths:
    A llvm/test/TableGen/GlobalISelEmitter/RegSequenceBadSubReg.td
    M llvm/utils/TableGen/GlobalISelEmitter.cpp

  Log Message:
  -----------
  [TableGen][GlobalISel] Skip REG_SEQUENCE with incompatible subreg index (#196184)

The REG_SEQUENCE branch of GlobalISelEmitter::constrainOperands called
SuperClass->getMatchingSubClassWithSubRegs(...) and dereferenced the
returned SrcRCDstRCPair unconditionally, aborting on a libstdc++
optional assertion when incorrect subreg index was passed.

Add the missing guard so the malformed pattern is reported via
failedImport (a skipped pattern) instead of crashing tblgen.

Assisted by Claude.

Fixes https://github.com/llvm/llvm-project/issues/172690



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list