Skip to content

Commit 11bab9b

Browse files
pkwasnie-intelpszymich
authored andcommitted
Revert "subroutine int64 div/rem emulation"
This reverts commit 0402b7d. (cherry picked from commit 3080cd9)
1 parent 179aee9 commit 11bab9b

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

IGC/Compiler/Optimizer/PreCompiledFuncImport.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2547,7 +2547,6 @@ void PreCompiledFuncImport::checkAndSetEnableSubroutine()
25472547
bool SPDiv = isSPDiv();
25482548
bool DPEmu = isDPEmu();
25492549
bool DPDivSqrtEmu = isDPDivSqrtEmu();
2550-
bool I64DivRem = isI64DivRem();
25512550

25522551
Module* M = m_pCtx->getModule();
25532552
for (auto FI = M->begin(), FE = M->end(); FI != FE; ++FI)
@@ -2590,15 +2589,6 @@ void PreCompiledFuncImport::checkAndSetEnableSubroutine()
25902589
m_enableCallForEmulation = true;
25912590
}
25922591
break;
2593-
case Instruction::UDiv:
2594-
case Instruction::URem:
2595-
case Instruction::SDiv:
2596-
case Instruction::SRem:
2597-
if (I64DivRem && I->getOperand(0)->getType()->isIntegerTy(64))
2598-
{
2599-
m_enableCallForEmulation = true;
2600-
}
2601-
break;
26022592
}
26032593

26042594
GenIntrinsicInst* GII = dyn_cast<GenIntrinsicInst>(I);

0 commit comments

Comments
 (0)