Skip to content

Commit 4b6a0ea

Browse files
committed
fixup! add comment
1 parent bce9a7a commit 4b6a0ea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3071,6 +3071,7 @@ bool RISCVDAGToDAGISel::SelectAddrRegRegScale(SDValue Addr,
30713071
return true;
30723072
}
30733073

3074+
// Add is commutative so we need to check both operands.
30743075
if (SelectShl(LHS.getOperand(0), Index, Scale)) {
30753076
SDValue C1Val = CurDAG->getTargetConstant(*C1->getConstantIntValue(),
30763077
SDLoc(Addr), VT);

0 commit comments

Comments
 (0)