Skip to content

Commit 8c17cd1

Browse files
weiyu-chenigcbot
authored andcommitted
[Autobackout][FuncReg]Revert of change: 1f24206
Allow float to packed half-float move on select platforms, second try.
1 parent 0df88e0 commit 8c17cd1

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

visa/HWCaps.inc

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -699,9 +699,4 @@
699699
{
700700
return false;
701701
}
702-
703-
bool hasFtoPackedHFMove() const
704-
{
705-
return false;
706-
}
707-
// end HW capabilities
702+
// end HW capabilities

visa/HWConformity.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1674,10 +1674,8 @@ bool HWConformity::fixDstAlignment(INST_LIST_ITER i, G4_BB* bb, G4_Type extype,
16741674
{
16751675
intHFConversion = true;
16761676
}
1677-
// F to packed HF operations are handled specially later
1678-
bool FtoHFMov = dst->getType() == Type_HF && src0->getType() == Type_F;
1679-
if (builder.getPlatform() >= GENX_CHV && !intHFConversion &&
1680-
(inst->isMixedMode() || (builder.hasFtoPackedHFMove() && FtoHFMov && inst->getExecSize() >= builder.getNativeExecSize())))
1677+
// we allow packed destination for F to HF.
1678+
if (builder.getPlatform() >= GENX_CHV && !intHFConversion && inst->isMixedMode())
16811679
{
16821680
return insertMOV;
16831681
}

0 commit comments

Comments
 (0)