[PATCH] D58632: [X86] Improve lowering of idemptotent RMW operations

Philip Reames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 25 09:23:05 PST 2019


reames created this revision.
reames added a reviewer: jfb.
Herald added subscribers: jdoerfert, bollu, mcrosier.

The current lowering uses an mfence.  mfences are substaintially higher latency than the locked operations originally requested, but we do want to avoid contention on the original cache line.  As such, use a locked instruction on a cache line assumed to be thread local.


https://reviews.llvm.org/D58632

Files:
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/atomic-idempotent.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58632.188200.patch
Type: text/x-patch
Size: 9013 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190225/2f5c0d13/attachment.bin>


More information about the llvm-commits mailing list