Skip to content

Commit dc943a8

Browse files
committed
fixup! [RISCV] Change vector tuple type's TypeSize to scalable
1 parent deab61a commit dc943a8

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

llvm/include/llvm/CodeGen/ValueTypes.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,7 @@ namespace llvm {
185185

186186
/// Return true if the type is a scalable type.
187187
bool isScalableVT() const {
188-
return isScalableVector() || isScalableTargetExtVT() ||
189-
isRISCVVectorTuple();
188+
return isScalableVector() || isScalableTargetExtVT();
190189
}
191190

192191
/// Return true if this is a 16-bit vector type.

llvm/include/llvm/CodeGenTypes/MachineValueType.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ namespace llvm {
124124

125125
/// Return true if this is a custom target type that has a scalable size.
126126
bool isScalableTargetExtVT() const {
127-
return SimpleTy == MVT::aarch64svcount;
127+
return SimpleTy == MVT::aarch64svcount || isRISCVVectorTuple();
128128
}
129129

130130
/// Return true if the type is a scalable type.

0 commit comments

Comments
 (0)