Skip to content

Commit aaf8589

Browse files
weiyu-chensys_zuul
authored andcommitted
Minor refactor on accumulator legality check.
Change-Id: Ib348bb85d7108ba81a7a3e50bec3f86d039d1104
1 parent 376ecf1 commit aaf8589

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

visa/Gen4_IR.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7764,6 +7764,11 @@ bool G4_INST::canDstBeAcc() const
77647764
return false;
77657765
}
77667766

7767+
if (!builder.hasFP64Acc() && dst->getType() == Type_DF)
7768+
{
7769+
return false;
7770+
}
7771+
77677772
// src0 may not have indirect regioning
77687773
if (!builder.accDstforIndirectSrc() && getSrc(0) && getSrc(0)->isSrcRegRegion())
77697774
{

visa/HWCaps.inc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,5 +627,10 @@
627627
return false;
628628
}
629629

630+
bool hasFP64Acc() const
631+
{
632+
return !noFP64();
633+
}
634+
630635

631636
// end HW capabilities

0 commit comments

Comments
 (0)