diff options
| author | Eric Christopher <echristo@apple.com> | 2011-05-17 08:16:14 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@apple.com> | 2011-05-17 08:16:14 +0000 |
| commit | 56a42ebf1550b6a470ca3b2ce93d0a9b8e1ab31c (patch) | |
| tree | 9365b6ab3809f82e25c985087bc311dfb38517b0 /llvm/lib | |
| parent | a1d9e29552b5b3003fc52e4a5883343a566001bd (diff) | |
| download | bcm5719-llvm-56a42ebf1550b6a470ca3b2ce93d0a9b8e1ab31c.tar.gz bcm5719-llvm-56a42ebf1550b6a470ca3b2ce93d0a9b8e1ab31c.zip | |
Update comment.
llvm-svn: 131459
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/X86/X86ISelDAGToDAG.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp index 13f7cdace4a..89d5f7b8633 100644 --- a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp +++ b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp @@ -1550,10 +1550,10 @@ SDNode *X86DAGToDAGISel::SelectAtomicLoadArith(SDNode *Node, EVT NVT) { if (Node->hasAnyUseOfValue(0)) return 0; - // Optimize common patterns for __sync_or_and_fetch where the result - // is not used. This allows us to use the "lock" version of the or - // instruction. - // FIXME: Same as for 'add' and 'sub'. + // Optimize common patterns for __sync_or_and_fetch and similar arith + // operations where the result is not used. This allows us to use the "lock" + // version of the arithmetic instruction. + // FIXME: Same as for 'add' and 'sub', try to merge those down here. SDValue Chain = Node->getOperand(0); SDValue Ptr = Node->getOperand(1); SDValue Val = Node->getOperand(2); |

