Skip to content

Commit 881fa3d

Browse files
authored
Update llvm/lib/Target/RISCV/RISCVISelLowering.cpp
1 parent 864e167 commit 881fa3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15446,7 +15446,7 @@ static SDValue expandMulToNAFSequence(SDNode *N, SelectionDAG &DAG,
1544615446

1544715447
// Find the Non-adjacent form of the multiplier.
1544815448
llvm::SmallVector<std::pair<bool, uint64_t>> Sequence; // {isAdd, shamt}
15449-
for (auto E = MulAmt, I = 0; E && I < BitWidth; ++I, E >>= 1) {
15449+
for (uint64_t E = MulAmt, I = 0; E && I < BitWidth; ++I, E >>= 1) {
1545015450
if (E & 1) {
1545115451
bool isAdd = (E & 3) == 1;
1545215452
Sequence.push_back({isAdd, I});

0 commit comments

Comments
 (0)