Skip to content

Commit 107d3d0

Browse files
Figured out why the test case started failing and fixed it.
1 parent d452f5d commit 107d3d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14335,11 +14335,11 @@ static bool checkAddiForShift(SDValue AddI, int64_t &AddConst,
1433514335
if (!ShiftNode)
1433614336
return false;
1433714337

14338-
if (ShlConst < 1 || ShlConst > 3)
14338+
if (ShiftNode->getSExtValue() < 1 || ShiftNode->getSExtValue() > 3)
1433914339
return false;
1434014340

14341-
AddConst = AddConstNode->getSExtValue();
1434214341
ShlConst = ShiftNode->getSExtValue();
14342+
AddConst = AddConstNode->getSExtValue();
1434314343
return true;
1434414344
}
1434514345

0 commit comments

Comments
 (0)