aboutsummaryrefslogtreecommitdiff
path: root/lib/Target
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-05-17 08:16:14 +0000
committerEric Christopher <echristo@apple.com>2011-05-17 08:16:14 +0000
commit6abb7bae10736316fdf377ddbfff29960674c96a (patch)
treea9966a17ac6b24aadedf01c4e8e65ec5f3ce83bb /lib/Target
parentc324f72ab722a852d65fa1f1a45c1de678b0e9a6 (diff)
Update comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131459 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/X86/X86ISelDAGToDAG.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/X86/X86ISelDAGToDAG.cpp b/lib/Target/X86/X86ISelDAGToDAG.cpp
index 13f7cdace4..89d5f7b863 100644
--- a/lib/Target/X86/X86ISelDAGToDAG.cpp
+++ b/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);