Skip to content

Commit 61671fc

Browse files
DianaChenigcbot
authored andcommitted
IGA: SWSB bug fix when clear sbid dependency
A bug fix in SWSBAnalyzer::clearSBIDDependence to properly clear the dependency of instructions those have been sync-ed by swsb.
1 parent 1aebbe3 commit 61671fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

visa/iga/IGALibrary/IR/SWSBSetter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,12 +564,12 @@ bool SWSBAnalyzer::clearSBIDDependence(InstList::iterator insertPoint,
564564
Instruction *lastInst, Block *bb) {
565565

566566
auto clearSBID = [&](const SBID& in) {
567-
m_freeSBIDList[in.sbid].reset();
568567
assert(m_IdToDepSetMap.find(in.sbid) != m_IdToDepSetMap.end());
569568
assert(m_IdToDepSetMap[in.sbid].first->getDepClass() ==
570569
DEP_CLASS::OUT_OF_ORDER);
571570
clearDepBuckets(*m_IdToDepSetMap[in.sbid].first);
572571
clearDepBuckets(*m_IdToDepSetMap[in.sbid].second);
572+
m_freeSBIDList[in.sbid].reset();
573573
};
574574

575575
bool sbidInUse = false;

0 commit comments

Comments
 (0)