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

Valentin Churavy via All-commits all-commits at lists.llvm.org
Thu Mar 6 21:39:24 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ed6bde93f050b9314e54ecbc69c08ab78f4251af
      https://github.com/llvm/llvm-project/commit/ed6bde93f050b9314e54ecbc69c08ab78f4251af
  Author: Valentin Churavy <v.churavy at gmail.com>
  Date:   2025-03-07 (Fri, 07 Mar 2025)

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

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

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`.



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