Skip to content

Commit 6a07409

Browse files
fixup! drop check for malformed MIR
1 parent e7086d6 commit 6a07409

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -953,13 +953,8 @@ bool RISCVLegalizerInfo::legalizeExtractSubvector(MachineInstr &MI,
953953
Register Src = ES.getSrcVec();
954954
uint64_t Idx = ES.getIndexImm();
955955

956-
// Only support vectors using custom legalization. We know the DstTy is a
957-
// vector since we used that to decide whether to custom legalize or not.
958-
LLT BigTy = MRI.getType(Src);
959-
if (BigTy.isScalar())
960-
return false;
961-
962956
LLT LitTy = MRI.getType(Dst);
957+
LLT BigTy = MRI.getType(Src);
963958
Register Vec = Src;
964959

965960
// We don't have the ability to slide mask vectors down indexed by their i1

0 commit comments

Comments
 (0)