Skip to content

Commit fdc4334

Browse files
sys-igcigcbot
authored andcommitted
[Autobackout][FunctionalRegression]Revert of change: 5350399: IGA: Relax assertion for dpas null src check
Relax the assertion for checking if dpas src can be null when calculating register footprint.
1 parent 71ed81e commit fdc4334

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

visa/iga/IGALibrary/IR/RegDeps.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,9 +405,9 @@ void DepSet::getDpasSrcDependency(const Instruction &inst,
405405

406406
for (unsigned srcIx = 0; srcIx < inst.getSourceCount(); ++srcIx) {
407407
const Operand &op = inst.getSource(srcIx);
408-
// src could be null, in that case no need to set the dependency
409-
if (op.getDirRegName() == RegName::ARF_NULL) {
410-
// if src is null, set the reg range to max() to specify its actually
408+
// the src0 could be null, in that case no need to set the dependency
409+
if (srcIx == 0 && op.getDirRegName() == RegName::ARF_NULL) {
410+
// if src0 is null, set the reg range to max() to specify its actually
411411
// empty
412412
reg_range.push_back(std::make_pair(std::numeric_limits<uint32_t>::max(),
413413
std::numeric_limits<uint32_t>::max()));

0 commit comments

Comments
 (0)