Add a target-specific DAG combine on X86 to fold the common pattern of
authorOwen Anderson <resistor@mac.com>
Mon, 29 Jun 2009 18:04:45 +0000 (18:04 +0000)
committerOwen Anderson <resistor@mac.com>
Mon, 29 Jun 2009 18:04:45 +0000 (18:04 +0000)
commit9917700af4e773b8269b6751014da490c914c524
tree6074d8b49e1024f247abcc8ed2fdb326074412ce
parent37c286c18128cce7f52654876a5a104150be4b79
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
lib/Target/X86/X86ISelLowering.cpp