File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
llvm/lib/CodeGen/GlobalISel Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -6256,13 +6256,11 @@ LegalizerHelper::LegalizeResult LegalizerHelper::lowerFPTOSI(MachineInstr &MI) {
6256
6256
LegalizerHelper::LegalizeResult
6257
6257
LegalizerHelper::lowerFPTRUNC_F64_TO_F16 (MachineInstr &MI) {
6258
6258
const LLT S1 = LLT::scalar (1 );
6259
- const LLT S16 = LLT::scalar (16 );
6260
6259
const LLT S32 = LLT::scalar (32 );
6261
- const LLT S64 = LLT::scalar (64 );
6262
6260
6263
6261
auto [Dst, Src] = MI.getFirst2Regs ();
6264
- assert (MRI.getType (Dst).getScalarType () == S16 &&
6265
- MRI.getType (Src).getScalarType () == S64 );
6262
+ assert (MRI.getType (Dst).getScalarType () == LLT::scalar ( 16 ) &&
6263
+ MRI.getType (Src).getScalarType () == LLT::scalar ( 64 ) );
6266
6264
6267
6265
if (MRI.getType (Src).isVector ()) // TODO: Handle vectors directly.
6268
6266
return UnableToLegalize;
You can’t perform that action at this time.
0 commit comments