[llvm] r217885 - [X86] Improve comment

Adam Nemet anemet at apple.com
Tue Sep 16 10:14:11 PDT 2014


Author: anemet
Date: Tue Sep 16 12:14:10 2014
New Revision: 217885

URL: http://llvm.org/viewvc/llvm-project?rev=217885&view=rev
Log:
[X86] Improve 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=217885&r1=217884&r2=217885&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp Tue Sep 16 12:14:10 2014
@@ -775,9 +775,10 @@ static void InsertDAGNode(SelectionDAG &
   }
 }
 
-// Transform "(X >> (8-C1)) & C2" to "(X >> 8) & 0xff)" if safe. This
-// allows us to convert the shift and and into an h-register extract and
-// a scaled index. Returns false if the simplification is performed.
+// Transform "(X >> (8-C1)) & (0xff << C1)" to "((X >> 8) & 0xff) << C1" if
+// safe. This allows us to convert the shift and and into an h-register
+// extract and a scaled index. Returns false if the simplification is
+// performed.
 static bool FoldMaskAndShiftToExtract(SelectionDAG &DAG, SDValue N,
                                       uint64_t Mask,
                                       SDValue Shift, SDValue X,





More information about the llvm-commits mailing list