[all-commits] [llvm/llvm-project] d54c03: [X86] Use fence(seq_cst) in IdempotentRMWIntoFence...

Valentin Churavy via All-commits all-commits at lists.llvm.org
Mon Feb 10 06:27:31 PST 2025


  Branch: refs/heads/users/vchuravy/x86isel_hasmfence
  Home:   https://github.com/llvm/llvm-project
  Commit: d54c039c93646edb8ea113a4d16b9e6aa448ee7d
      https://github.com/llvm/llvm-project/commit/d54c039c93646edb8ea113a4d16b9e6aa448ee7d
  Author: Valentin Churavy <v.churavy at gmail.com>
  Date:   2025-02-10 (Mon, 10 Feb 2025)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/atomic-idempotent.ll

  Log Message:
  -----------
  [X86] Use fence(seq_cst) in IdempotentRMWIntoFencedLoad

This extends this optimization for scenarios where the subtarget
has `!hasMFence` or we have SyncScope SingleThread, by avoiding
the direct usage of `llvm.x64.sse2.mfence`.

Originally part of #106555



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