Skip to content

Commit 9bb8557

Browse files
fangliu2020igcbot
authored andcommitted
Enable madw use in i64 mul emulator
Enable madw use in i64 mul emulator for those platforms do not support native DW multiple.
1 parent 1fcca8d commit 9bb8557

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
@@ -2530,7 +2530,7 @@ void EmitPass::EmitMulPair(GenIntrinsicInst* GII, const SSource Sources[4], cons
25302530
else
25312531
{
25322532
// For those platforms natively not support DW-DW multiply, use vISA madw instruction instead of mul/mulh to get better performance.
2533-
if (false && m_currShader->m_Platform->noNativeDwordMulSupport())
2533+
if (m_currShader->m_Platform->noNativeDwordMulSupport())
25342534
{
25352535
// (Cr, E) = A * B
25362536
// dst size should be GRF-aligned and doubled as it has both low and high results.
@@ -3662,7 +3662,7 @@ void EmitPass::Mul64(CVariable* dst, CVariable* src[2], SIMDMode simdMode, bool
36623662
// dstHigh = F + G + carry
36633663

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

0 commit comments

Comments
 (0)