Skip to content

Commit 9a456d8

Browse files
jgu222sys_zuul
authored and
sys_zuul
committed
Internal bug fix
Change-Id: I41a7057f24b07d76553ddd366042c454dbdef75e
1 parent 09a1d35 commit 9a456d8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

visa/Gen4_IR.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1850,6 +1850,7 @@ G4_INST::MovType G4_INST::canPropagate() const
18501850
G4_Type dstType = dst->getType();
18511851
G4_Type srcType = src->getType();
18521852

1853+
18531854
G4_SrcModifier srcMod = Mod_src_undef;
18541855
if (src->isSrcRegRegion()) {
18551856
srcMod = src->asSrcRegRegion()->getModifier();

visa/Optimizer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1846,7 +1846,7 @@ static bool canHoist(FlowGraph &fg, G4_BB *bb, INST_LIST_RITER revIter)
18461846
return false;
18471847
}
18481848

1849-
// Do not do def-hoisting for seeting flags which is likely to increase flag
1849+
// Do not do def-hoisting for setting flags which is likely to increase flag
18501850
// register pressure.
18511851
if (auto Dst = inst->getDst())
18521852
{
@@ -1855,6 +1855,7 @@ static bool canHoist(FlowGraph &fg, G4_BB *bb, INST_LIST_RITER revIter)
18551855
{
18561856
return false;
18571857
}
1858+
18581859
}
18591860

18601861
// Now check each definition of src(0)

0 commit comments

Comments
 (0)