Skip to content

Commit 1cfa8b4

Browse files
Address comment
Signed-off-by: Mikhail R. Gadelha <[email protected]>
1 parent 7afbd3a commit 1cfa8b4

File tree

2 files changed

+449
-218
lines changed

2 files changed

+449
-218
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3505,6 +3505,10 @@ static SDValue matchSplatAsGather(SDValue SplatVal, MVT VT, const SDLoc &DL,
35053505
if (Idx.getValueType() != Subtarget.getXLenVT())
35063506
return SDValue();
35073507

3508+
if (Vec.getValueSizeInBits().getKnownMinValue() >
3509+
VT.getSizeInBits().getKnownMinValue())
3510+
return SDValue();
3511+
35083512
MVT ContainerVT = VT;
35093513
if (VT.isFixedLengthVector())
35103514
ContainerVT = getContainerForFixedLengthVector(DAG, VT, Subtarget);

0 commit comments

Comments
 (0)