[llvm] r311144 - [DAGCombiner] Fix bad comment that had immediate values swapped from the code and what they need to be to make sense. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 17 21:52:46 PDT 2017
Author: ctopper
Date: Thu Aug 17 21:52:46 2017
New Revision: 311144
URL: http://llvm.org/viewvc/llvm-project?rev=311144&view=rev
Log:
[DAGCombiner] Fix bad comment that had immediate values swapped from the code and what they need to be to make sense. NFC
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=311144&r1=311143&r2=311144&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Thu Aug 17 21:52:46 2017
@@ -4029,7 +4029,7 @@ SDValue DAGCombiner::MatchBSwapHWordLow(
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)
More information about the llvm-commits
mailing list