Skip to content

Commit f5fb36d

Browse files
Addressed comments
1 parent 276abb7 commit f5fb36d

File tree

2 files changed

+94
-90
lines changed

2 files changed

+94
-90
lines changed

llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1630,5 +1630,9 @@ bool RISCVTTIImpl::isLegalMaskedCompressStore(Type *DataTy, Align Alignment) {
16301630
TLI->getValueType(DL, VTy->getElementType())))
16311631
return false;
16321632

1633+
if (!isLegalMaskedLoadStore(DataTy, Alignment))
1634+
return false;
1635+
1636+
// Splitting of vcompress for LMUL > 8 is yet not implemented.
16331637
return getRegUsageForType(VTy) <= 8;
16341638
}

0 commit comments

Comments
 (0)