File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
llvm/lib/Target/RISCV/GISel Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -825,9 +825,10 @@ bool RISCVInstructionSelector::earlySelect(MachineInstr &MI) {
825
825
Register Scalar = MI.getOperand (1 ).getReg ();
826
826
bool IsGPRSplat = isRegInGprb (Scalar);
827
827
const LLT sXLen = LLT::scalar (STI.getXLen ());
828
- if (IsGPRSplat && TypeSize::isKnownLT (MRI->getType (Scalar).getSizeInBits (),
829
- sXLen .getSizeInBits ()))
830
- Scalar = MIB.buildAnyExt (sXLen , Scalar).getReg (0 );
828
+ assert ((!IsGPRSplat ||
829
+ TypeSize::isKnownGE (MRI->getType (Scalar).getSizeInBits (),
830
+ sXLen .getSizeInBits ())) &&
831
+ " Unexpected Scalar register Type or Size" );
831
832
832
833
// We create a IMPLICIT_DEF and a G_CONSTANT when we encounter a
833
834
// G_SPLAT_VECTOR. We cannot select the G_CONSTANT until after the MI is
You can’t perform that action at this time.
0 commit comments