File tree Expand file tree Collapse file tree 3 files changed +1
-15
lines changed Expand file tree Collapse file tree 3 files changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -364,11 +364,6 @@ class IR_Builder
364
364
G4_INST* FDSpillInst = nullptr ;
365
365
G4_Declare* tmpFCRet = nullptr ;
366
366
367
-
368
- // input declare of R1.
369
- // Used to initialize header payload of render target read message
370
- G4_Declare* inputR1 = nullptr ;
371
-
372
367
unsigned short arg_size;
373
368
unsigned short return_var_size;
374
369
@@ -672,9 +667,6 @@ class IR_Builder
672
667
G4_Declare* getBuiltinSamplerHeader () const { return builtinSamplerHeader; }
673
668
G4_Declare* getOldA0Dot2Temp () const { return oldA0Dot2Temp; }
674
669
675
- G4_Declare* getInputR1 () { return inputR1; }
676
- void setInputR1 (G4_Declare* r1) { inputR1 = r1; }
677
-
678
670
bool isBindlessSampler (const G4_Operand* sampler) const {
679
671
return sampler->isSrcRegRegion () && sampler->getTopDcl () == getBuiltinBindlessSampler ();
680
672
}
Original file line number Diff line number Diff line change @@ -1470,7 +1470,7 @@ void LocalRA::calculateInputIntervals()
1470
1470
if (topdcl && (lr = gra.getLocalLR (topdcl)))
1471
1471
{
1472
1472
// Check whether it is input
1473
- if (topdcl->getRegFile () == G4_INPUT &&
1473
+ if (( topdcl->getRegFile () == G4_INPUT || topdcl-> isLiveIn ()) &&
1474
1474
!(src->isAreg ()) &&
1475
1475
topdcl->isOutput () == false &&
1476
1476
lr->hasIndirectAccess () == false &&
Original file line number Diff line number Diff line change @@ -1805,12 +1805,6 @@ int VISAKernelImpl::CreateVISAInputVar(
1805
1805
}
1806
1806
}
1807
1807
1808
- // save the G4_declare of "R1" input in builder
1809
- if (offset == getGRFSize () && size == getGRFSize ())
1810
- {
1811
- m_builder->setInputR1 (input->dcl );
1812
- }
1813
-
1814
1808
return status;
1815
1809
}
1816
1810
You can’t perform that action at this time.
0 commit comments