Skip to content

Commit ad8248c

Browse files
fangliu2020igcbot
authored andcommitted
Enable madw use in i64 mul emulator. #3 try.
Enable madw use in i64 mul emulator. #3 try.
1 parent 68a90e4 commit ad8248c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

IGC/Compiler/CISACodeGen/EmitVISAPass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2532,7 +2532,7 @@ void EmitPass::EmitMulPair(GenIntrinsicInst* GII, const SSource Sources[4], cons
25322532
else
25332533
{
25342534
// For those platforms natively not support DW-DW multiply, use vISA madw instruction instead of mul/mulh to get better performance.
2535-
if (false && m_currShader->m_Platform->noNativeDwordMulSupport())
2535+
if (m_currShader->m_Platform->noNativeDwordMulSupport())
25362536
{
25372537
// (Cr, E) = A * B
25382538
// dst size should be GRF-aligned and doubled as it has both low and high results.
@@ -3664,7 +3664,7 @@ void EmitPass::Mul64(CVariable* dst, CVariable* src[2], SIMDMode simdMode, bool
36643664
// dstHigh = F + G + carry
36653665

36663666
// For those platforms natively not support DW-DW multiply, use vISA madw instruction instead of mul/mulh to get better performance.
3667-
if (false && m_currShader->m_Platform->noNativeDwordMulSupport())
3667+
if (m_currShader->m_Platform->noNativeDwordMulSupport())
36683668
{
36693669
// (Cr, E) = A * B
36703670
EncoderInit();

0 commit comments

Comments
 (0)