[all-commits] [llvm/llvm-project] a3d935: [CodeGen] Compare MMO atomic ordering and syncscop...

Justin Lebar via All-commits all-commits at lists.llvm.org
Wed May 27 10:31:09 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a3d935402420d0ec1f91a37a8fc85bf4ea166f74
      https://github.com/llvm/llvm-project/commit/a3d935402420d0ec1f91a37a8fc85bf4ea166f74
  Author: Justin Lebar <justin.lebar at gmail.com>
  Date:   2026-05-27 (Wed, 27 May 2026)

  Changed paths:
    M llvm/include/llvm/CodeGen/MachineMemOperand.h
    A llvm/test/CodeGen/X86/branchfolding-atomic-mmo.ll

  Log Message:
  -----------
  [CodeGen] Compare MMO atomic ordering and syncscope. (#199892)

MachineMemOperand::operator== compared the address, flags, AA metadata,
range, alignment, and address space, but not atomic success ordering,
failure ordering, or syncscope. Users such as
MachineInstr::cloneMergedMemRefs could therefore treat atomic and
non-atomic MMOs, or atomics with different syncscopes, as identical.

This bug was found by a large run of Opus 4.7 looking for bugs in LLVM.



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