Skip to content

Commit 2e0e48d

Browse files
sys-d3djenkinsgfxbot
authored andcommitted
Backout of 1b89420 due to Functional Regression.
Change-Id: I383c938932955ec173f587079237fb2513db7f70
1 parent 2a0eebb commit 2e0e48d

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

IGC/Compiler/CustomUnsafeOptPass.cpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1663,13 +1663,10 @@ void CustomUnsafeOptPass::visitBinaryOperator(BinaryOperator &I)
16631663
{
16641664
if (!(fp0 && fp0->isExactlyValue(1.0)))
16651665
{
1666-
if (m_ctx->getModuleMetaData()->compOpt.FastRelaxedMath || I.hasAllowReciprocal())
1667-
{
1668-
Value *invOp = copyIRFlags(BinaryOperator::CreateFDiv(ConstantFP::get(opType, 1.0), op1, "", &I), &I);
1669-
I.replaceAllUsesWith(
1670-
copyIRFlags(BinaryOperator::CreateFMul(op0, invOp, "", &I), &I));
1671-
patternFound = true;
1672-
}
1666+
Value *invOp = copyIRFlags(BinaryOperator::CreateFDiv(ConstantFP::get(opType, 1.0), op1, "", &I), &I);
1667+
I.replaceAllUsesWith(
1668+
copyIRFlags(BinaryOperator::CreateFMul(op0, invOp, "", &I), &I));
1669+
patternFound = true;
16731670
}
16741671
}
16751672
}

0 commit comments

Comments
 (0)