Skip to content

Commit 8fc7d84

Browse files
fangliu2020igcbot
authored andcommitted
Variables marked as live-in should be treated as input variables.
Variables marked as live-in should be treated as input variables.
1 parent 05f8284 commit 8fc7d84

File tree

3 files changed

+1
-15
lines changed

3 files changed

+1
-15
lines changed

visa/BuildIR.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -364,11 +364,6 @@ class IR_Builder
364364
G4_INST* FDSpillInst = nullptr;
365365
G4_Declare* tmpFCRet = nullptr;
366366

367-
368-
// input declare of R1.
369-
// Used to initialize header payload of render target read message
370-
G4_Declare* inputR1 = nullptr;
371-
372367
unsigned short arg_size;
373368
unsigned short return_var_size;
374369

@@ -672,9 +667,6 @@ class IR_Builder
672667
G4_Declare* getBuiltinSamplerHeader() const { return builtinSamplerHeader; }
673668
G4_Declare* getOldA0Dot2Temp() const { return oldA0Dot2Temp; }
674669

675-
G4_Declare* getInputR1() { return inputR1; }
676-
void setInputR1(G4_Declare* r1) { inputR1 = r1; }
677-
678670
bool isBindlessSampler(const G4_Operand* sampler) const {
679671
return sampler->isSrcRegRegion() && sampler->getTopDcl() == getBuiltinBindlessSampler();
680672
}

visa/LocalRA.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1470,7 +1470,7 @@ void LocalRA::calculateInputIntervals()
14701470
if (topdcl && (lr = gra.getLocalLR(topdcl)))
14711471
{
14721472
// Check whether it is input
1473-
if (topdcl->getRegFile() == G4_INPUT &&
1473+
if ((topdcl->getRegFile() == G4_INPUT || topdcl->isLiveIn()) &&
14741474
!(src->isAreg()) &&
14751475
topdcl->isOutput() == false &&
14761476
lr->hasIndirectAccess() == false &&

visa/VISAKernelImpl.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1805,12 +1805,6 @@ int VISAKernelImpl::CreateVISAInputVar(
18051805
}
18061806
}
18071807

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-
18141808
return status;
18151809
}
18161810

0 commit comments

Comments
 (0)