Skip to content

Commit a8c9fb0

Browse files
FIXME -> TODO
Signed-off-by: Mikhail R. Gadelha <[email protected]>
1 parent 8aa38bd commit a8c9fb0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3508,7 +3508,8 @@ static SDValue matchSplatAsGather(SDValue SplatVal, MVT VT, const SDLoc &DL,
35083508
if (Idx.getValueType() != Subtarget.getXLenVT())
35093509
return SDValue();
35103510

3511-
// FIXME: Can we use the indexes that are in-bound here instead?
3511+
// Check that Index lies within VT
3512+
// TODO: Can we check if the Index is constant and known in-bounds?
35123513
if (!TypeSize::isKnownLE(Vec.getValueSizeInBits(), VT.getSizeInBits()))
35133514
return SDValue();
35143515

0 commit comments

Comments
 (0)