We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef2ad4e commit 4d97b3fCopy full SHA for 4d97b3f
IGC/VectorCompiler/lib/GenXCodeGen/GenXPatternMatch.cpp
@@ -1766,9 +1766,9 @@ void GenXPatternMatch::visitFDiv(BinaryOperator &I) {
1766
(IID == Intrinsic::sqrt && Divisor->getFastMathFlags().isFast())) &&
1767
match(Op0, m_FPOne()) && Divisor->hasOneUse()) {
1768
auto *Rsqrt = createInverseSqrt(Divisor->getOperand(0), Pos);
1769
- Divisor->eraseFromParent();
1770
I.replaceAllUsesWith(Rsqrt);
1771
I.eraseFromParent();
+ Divisor->eraseFromParent();
1772
1773
Changed |= true;
1774
return;
0 commit comments