[PATCH] D58290: Convert atomicrmws to xchg or store where legal

Philip Reames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 15 09:41:55 PST 2019

reames created this revision.
reames added reviewers: jfb, spatel, qcolombet.
Herald added subscribers: jdoerfert, bollu, mcrosier.

Implement two more transforms of atomicrmw in InstCombine.

1. We can convert an atomicrmw which produces a known value in memory into an xchg instead.
2. We can convert an atomicrmw xchg w/o users into a store for some orderings.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58290.187031.patch
Type: text/x-patch
Size: 6497 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190215/4cc2fd8f/attachment.bin>

More information about the llvm-commits mailing list