commit | 9917700af4e773b8269b6751014da490c914c524 | [log] [tgz] |
---|---|---|
author | Owen Anderson <resistor@mac.com> | Mon Jun 29 18:04:45 2009 +0000 |
committer | Owen Anderson <resistor@mac.com> | Mon Jun 29 18:04:45 2009 +0000 |
tree | 6074d8b49e1024f247abcc8ed2fdb326074412ce | |
parent | 37c286c18128cce7f52654876a5a104150be4b79 [diff] |
Add a target-specific DAG combine on X86 to fold the common pattern of fence-atomic-fence down to just the atomic op. This is possible thanks to X86's relatively strong memory model, which guarantees that locked instructions (which are used to implement atomics) are implicit fences. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74435 91177308-0d34-0410-b5e6-96231b3b80d8