Skip to content

Commit e9156cc

Browse files
bcheng0127sys_zuul
authored and
sys_zuul
committed
Changes in code.
Change-Id: I111546a048ab410c76b1ecb94e7f02f3d1395531
1 parent 2abc012 commit e9156cc

File tree

4 files changed

+1
-65
lines changed

4 files changed

+1
-65
lines changed

visa/Gen4_IR.cpp

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -8343,33 +8343,3 @@ G4_INST* G4_InstMath::cloneInst()
83438343
src0, src1, getMathCtrl(), option, getLineNo(), getCISAOff(), getSrcFilename());
83448344
}
83458345

8346-
8347-
bool G4_INST::isRMWCombinCandidate(G4_INST *next)
8348-
{
8349-
if (isSend() || next->isSend())
8350-
{
8351-
return false;
8352-
}
8353-
8354-
G4_Operand* dst = getDst();
8355-
G4_Operand* nextDst = next->getDst();
8356-
//The current instruction must has Integer macro dst as well
8357-
if (nextDst &&
8358-
nextDst->isGen12IntegerMacroDst())
8359-
{
8360-
8361-
unsigned short lastLB = (unsigned short)dst->getLinearizedStart();
8362-
unsigned short lastRB = (unsigned short)dst->getLinearizedEnd();
8363-
unsigned short nextLB = (unsigned short)nextDst->getLinearizedStart();
8364-
unsigned short nextRB = (unsigned short)nextDst->getLinearizedEnd();
8365-
8366-
if (lastLB / G4_GRF_REG_NBYTES == nextLB / G4_GRF_REG_NBYTES &&
8367-
lastRB / G4_GRF_REG_NBYTES == nextRB / G4_GRF_REG_NBYTES &&
8368-
dst->compareOperand(nextDst) == Rel_disjoint)
8369-
{
8370-
return true;
8371-
}
8372-
}
8373-
8374-
return false;
8375-
}

visa/Gen4_IR.hpp

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,6 @@ class G4_INST
954954
}
955955

956956
bool mayExpandToAccMacro() const;
957-
bool isRMWCombinCandidate(G4_INST* next);
958957

959958
Gen4_Operand_Number getSrcOperandNum(int srcPos) const
960959
{
@@ -2324,23 +2323,6 @@ class G4_Operand
23242323
return type;
23252324
}
23262325
}
2327-
bool isGen12IntegerMacroDst()
2328-
{
2329-
if (isNullReg())
2330-
{
2331-
return false;
2332-
}
2333-
2334-
if (type == Type_UW ||
2335-
type == Type_W ||
2336-
type == Type_B ||
2337-
type == Type_UB)
2338-
{
2339-
return true;
2340-
}
2341-
2342-
return false;
2343-
}
23442326
};
23452327

23462328
class G4_VarBase

visa/LocalScheduler/SWSB_G4IR.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4451,6 +4451,7 @@ void G4_BB_SB::SBDDD(G4_BB* bb,
44514451
getGRFBucketDescrs(node, liveBDvec, false);
44524452
}
44534453

4454+
44544455
// For ALU instructions without GRF usage
44554456
if (distanceHonourInstruction(curInst))
44564457
{

visa/LocalScheduler/SWSB_G4IR.h

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -136,23 +136,6 @@ namespace vISA
136136

137137
void setOffset(unsigned short o) { offset = o; }
138138

139-
bool hasOverlap(SBFootprint* liveFootprint) const
140-
{
141-
SBFootprint* curFootprint2Ptr = liveFootprint;
142-
while (curFootprint2Ptr)
143-
{
144-
// Negative of no overlap: !(LeftB > curFootprint2Ptr->RightB || RightB < curFootprint2Ptr->LeftB)
145-
if (fType == curFootprint2Ptr->fType &&
146-
LeftB <= curFootprint2Ptr->RightB && RightB >= curFootprint2Ptr->LeftB)
147-
{
148-
return true;
149-
}
150-
curFootprint2Ptr = curFootprint2Ptr->next;
151-
}
152-
153-
return false;
154-
}
155-
156139
bool hasOverlap(SBFootprint *liveFootprint, unsigned short &internalOffset) const
157140
{
158141
SBFootprint *curFootprint2Ptr = liveFootprint;

0 commit comments

Comments
 (0)