Skip to content

Commit 8d6d587

Browse files
Gang Y Chenigcbot
authored andcommitted
minor code change
minor minor
1 parent 9ae2ccd commit 8d6d587

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

visa/SpillCode.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ G4_Declare* SpillManager::createNewTempAddrDeclare(G4_Declare* dcl, uint16_t num
120120
return sp;
121121
}
122122

123+
123124
//
124125
// generate a reg to reg mov inst for addr/flag spill
125126
// mov dst(dRegOff,dSubRegOff)<1> src(sRegOff,sSubRegOff)<nRegs;nRegs,1>
@@ -323,7 +324,8 @@ void SpillManager::replaceSpilledSrc(G4_BB* bb,
323324
// original src region V100_uw(0,0)<0;1,0>:uw
324325
// new src region SP_uw(0,0)<0;1,0>:uw
325326
G4_SrcRegRegion* ss = src->asSrcRegRegion();
326-
G4_Declare* spDcl = ss->getBase()->asRegVar()->getDeclare()->getSpilledDeclare();
327+
G4_Declare* srcDcl = ss->getBase()->asRegVar()->getDeclare();
328+
G4_Declare* spDcl = srcDcl->getSpilledDeclare();
327329
if (ss->getRegAccess() == Direct)
328330
{
329331
G4_SrcRegRegion* s;

0 commit comments

Comments
 (0)