[PATCH] X86: elide comparisons after cmpxchg instructions.
Tim Northover
t.p.northover at gmail.com
Tue Jun 10 09:05:39 PDT 2014
The problem was X86ISD::BRCOND getting a stale chain after the original, unlowered cmpxchg had been replaced. I thought the correct value could be reliably inferred from the "Cmp", but that's not actually true in general so we need to save the chain slightly later in the function.
http://reviews.llvm.org/D4083
Files:
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86ISelLowering.h
test/CodeGen/X86/cmpxchg-i1.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4083.10281.patch
Type: text/x-patch
Size: 13161 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140610/326fa4ea/attachment.bin>
More information about the llvm-commits
mailing list