[all-commits] [llvm/llvm-project] 7bbfed: AArch64: Fix duplicating VG def operands in isel p...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Mon Sep 21 08:24:25 PDT 2026


  Branch: refs/heads/users/arsenm/aarch64/fix-duplicate-vg-def
  Home:   https://github.com/llvm/llvm-project
  Commit: 7bbfedc3f750ac6a88157dd73028572a0322da2c
      https://github.com/llvm/llvm-project/commit/7bbfedc3f750ac6a88157dd73028572a0322da2c
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2026-09-21 (Mon, 21 Sep 2026)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
    M llvm/lib/Target/AArch64/AArch64SMEInstrInfo.td
    M llvm/test/CodeGen/AArch64/sme-streaming-mode-landingpads.ll

  Log Message:
  -----------
  AArch64: Fix duplicating VG def operands in isel pseudo expansion

Previously MSRpstatePseudo's handling would produce a duplicate VG operand.
AdjustInstrPostInstrSelection added an implicit VG use/def and an FPMR def.
It's dubious to introduce a def in the output which wasn't already present
in the input, so fix the missing FPMR def. Also guard against re-introducing
the operands for instructions which already have the defs. Ideally there would
not be any of these manual def add calls, but that is a larger fix.

This removes the duplicate operand and fixes potentially inconsistent dead flags,
avoiding a failure in a future verifier check.

Co-authored-by: Claude (Claude-Opus-4.8) <noreply at anthropic.com>



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