[PATCH] [X86] Don't transform atomic-load-add into an inc/dec when inc/dec is slow
Robin Morisset
morisset at google.com
Wed Oct 8 11:55:09 PDT 2014
Hi jfb, nadav,
I had to move code around and turn a static function into a method to get
access to Subtarget, but the only "real" change is the extra check for
!Subtarget->slowIncDec().
http://reviews.llvm.org/D5678
Files:
lib/Target/X86/X86ISelDAGToDAG.cpp
test/CodeGen/X86/atomic_add.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5678.14589.patch
Type: text/x-patch
Size: 8222 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141008/4a1520ff/attachment.bin>
More information about the llvm-commits
mailing list