From: Craig Topper Date: Fri, 18 Aug 2017 04:52:46 +0000 (+0000) Subject: [DAGCombiner] Fix bad comment that had immediate values swapped from the code and... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bc3b8e99f1652caee3bc34aa0dbff3215535efd3;p=llvm [DAGCombiner] Fix bad comment that had immediate values swapped from the code and what they need to be to make sense. NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311144 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 5a5a81e8f6e..6a5e85f3d7f 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -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)