Skip to content

Commit e81105b

Browse files
Code style
Signed-off-by: Mikhail R. Gadelha <[email protected]>
1 parent a3f260b commit e81105b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3527,10 +3527,9 @@ static SDValue matchSplatAsGather(SDValue SplatVal, MVT VT, const SDLoc &DL,
35273527

35283528
// Check that we know Idx lies within VT
35293529
if (auto *CIdx = dyn_cast<ConstantSDNode>(Idx)) {
3530-
if (CIdx->getZExtValue() >= VT.getVectorElementCount().getKnownMinValue())
3531-
return SDValue();
3532-
}
3533-
else if (!TypeSize::isKnownLE(Vec.getValueSizeInBits(), VT.getSizeInBits()))
3530+
if (CIdx->getZExtValue() >= VT.getVectorElementCount().getKnownMinValue())
3531+
return SDValue();
3532+
} else if (!TypeSize::isKnownLE(Vec.getValueSizeInBits(), VT.getSizeInBits()))
35343533
return SDValue();
35353534

35363535
// Convert fixed length vectors to scalable

0 commit comments

Comments
 (0)