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

Valentin Churavy via All-commits all-commits at lists.llvm.org
Thu Mar 6 07:28:16 PST 2025


  Branch: refs/heads/users/vchuravy/x86isel_hasmfence
  Home:   https://github.com/llvm/llvm-project
  Commit: 93cb3f0d2c4dad09a39e3fcbdf999cf9e7e756b7
      https://github.com/llvm/llvm-project/commit/93cb3f0d2c4dad09a39e3fcbdf999cf9e7e756b7
  Author: Valentin Churavy <v.churavy at gmail.com>
  Date:   2025-03-06 (Thu, 06 Mar 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


  Commit: 52ff0b23cd1a7522a1a34d5d50796a6d51728528
      https://github.com/llvm/llvm-project/commit/52ff0b23cd1a7522a1a34d5d50796a6d51728528
  Author: Valentin Churavy <v.churavy at gmail.com>
  Date:   2025-03-06 (Thu, 06 Mar 2025)

  Changed paths:
    A llvm/test/CodeGen/X86/atomic-idempotent-syncscope.ll

  Log Message:
  -----------
  add test for syncscope


  Commit: 2357c81b0713add3927d6357f7df2baefbeafa8a
      https://github.com/llvm/llvm-project/commit/2357c81b0713add3927d6357f7df2baefbeafa8a
  Author: Valentin Churavy <v.churavy at gmail.com>
  Date:   2025-03-06 (Thu, 06 Mar 2025)

  Changed paths:
    M llvm/test/CodeGen/X86/atomic-idempotent-syncscope.ll

  Log Message:
  -----------
  update test with patch


  Commit: af8f6d47e2f1da6978b3e5dc5a171fe8b68882b5
      https://github.com/llvm/llvm-project/commit/af8f6d47e2f1da6978b3e5dc5a171fe8b68882b5
  Author: Valentin Churavy <v.churavy at gmail.com>
  Date:   2025-03-06 (Thu, 06 Mar 2025)

  Changed paths:
    M llvm/test/CodeGen/X86/atomic-idempotent-syncscope.ll
    M llvm/test/CodeGen/X86/atomic-idempotent.ll

  Log Message:
  -----------
  mark tests as nounwind


Compare: https://github.com/llvm/llvm-project/compare/a01668d4e651...af8f6d47e2f1

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