[all-commits] [llvm/llvm-project] 2fe83e: SystemZ: Mark unread CC defs dead at build time (#...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Fri Sep 25 04:37:22 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2fe83ee7dc5bb40e2f15e164c21a01bec01c1792
      https://github.com/llvm/llvm-project/commit/2fe83ee7dc5bb40e2f15e164c21a01bec01c1792
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2026-09-25 (Fri, 25 Sep 2026)

  Changed paths:
    M llvm/lib/Target/SystemZ/SystemZFrameLowering.cpp
    M llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
    M llvm/test/CodeGen/SystemZ/atomicrmw-fadd-04.ll
    M llvm/test/CodeGen/SystemZ/cmpxchg-01.ll
    M llvm/test/CodeGen/SystemZ/cmpxchg-02.ll
    A llvm/test/CodeGen/SystemZ/dead-cc-defs.ll

  Log Message:
  -----------
  SystemZ: Mark unread CC defs dead at build time (#226434)

The custom inserters for the subword atomic pseudos and for probed
allocas, plus the inline stack probe emitted by frame lowering, build
instructions whose CC def is never read. Set the dead flags.

Marking the RISBG32 in the subword cmpxchg loop dead lets MachineSink
move it out of the compare block and into the store block, so it is
skipped when the comparison fails.

Co-authored-by: Claude Opus 5 <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