[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...
Size: 6497 bytes
Desc: not available
More information about the llvm-commits