OSDN Git Service

[DAGCombiner] Fix bad comment that had immediate values swapped from the code and...
authorCraig Topper <craig.topper@intel.com>
Fri, 18 Aug 2017 04:52:46 +0000 (04:52 +0000)
committerCraig Topper <craig.topper@intel.com>
Fri, 18 Aug 2017 04:52:46 +0000 (04:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311144 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/DAGCombiner.cpp

index 5a5a81e..6a5e85f 100644 (file)
@@ -4029,7 +4029,7 @@ SDValue DAGCombiner::MatchBSwapHWordLow(SDNode *N, SDValue N0, SDValue N1,
   if (!TLI.isOperationLegalOrCustom(ISD::BSWAP, VT))
     return SDValue();
 
-  // Recognize (and (shl a, 8), 0xff), (and (srl a, 8), 0xff00)
+  // Recognize (and (shl a, 8), 0xff00), (and (srl a, 8), 0xff)
   bool LookPassAnd0 = false;
   bool LookPassAnd1 = false;
   if (N0.getOpcode() == ISD::AND && N0.getOperand(0).getOpcode() == ISD::SRL)