[PATCH] [Power] Use AtomicExpandPass for fence insertion, and use lwsync where appropriate
morisset at google.com
Wed Sep 3 16:23:37 PDT 2014
This patch makes use of AtomicExpandPass in Power for inserting fences around
atomic as part of an effort to remove fence insertion from SelectionDAGBuilder.
As a big bonus, it lets us use sync 1 (lightweight sync, often used by the mnemonic
lwsync) instead of sync 0 (heavyweight sync) in many cases.
I also added a test, as there was no test for the barriers emitted by the Power
backend for atomic loads and stores.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 8816 bytes
Desc: not available
More information about the llvm-commits