Skip to content

Commit fca21cf

Browse files
arsenmzjaffal
authored andcommitted
Fix duplicated condition and formatting
1 parent 40ab484 commit fca21cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1724,8 +1724,8 @@ static Instruction *foldFDivSqrtDivisor(BinaryOperator &I,
17241724

17251725
Value *Y, *Z;
17261726
auto *DivOp = dyn_cast<Instruction>(II->getOperand(0));
1727-
if (!DivOp || !DivOp->hasAllowReassoc() || !I.hasAllowReciprocal() || !DivOp->hasOneUse())
1728-
!I.hasAllowReciprocal())
1727+
if (!DivOp || !DivOp->hasAllowReassoc() || !I.hasAllowReciprocal() ||
1728+
!DivOp->hasOneUse())
17291729
return nullptr;
17301730
if (match(DivOp, m_FDiv(m_Value(Y), m_Value(Z)))) {
17311731
Value *SwapDiv = Builder.CreateFDivFMF(Z, Y, DivOp);

0 commit comments

Comments
 (0)