[DAGCombiner] Fix bad comment that had immediate values swapped from the code and what they need to be to make sense. NFC

llvm-svn: 311144
This commit is contained in:
Craig Topper 2017-08-18 04:52:46 +00:00
parent e739fc7d11
commit e3edd9c9be
1 changed files with 1 additions and 1 deletions

View 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)