[llvm-commits] [llvm] r131459 - /llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp
Eric Christopher
echristo at apple.com
Tue May 17 01:16:14 PDT 2011
Author: echristo
Date: Tue May 17 03:16:14 2011
New Revision: 131459
URL: http://llvm.org/viewvc/llvm-project?rev=131459&view=rev
Log:
Update comment.
Modified:
llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp?rev=131459&r1=131458&r2=131459&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp Tue May 17 03:16:14 2011
@@ -1550,10 +1550,10 @@
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);
More information about the llvm-commits
mailing list