Lines Matching refs:NewI
251 if (Instruction *NewI = tryReassociate(&*I)) { in doOneIteration() local
254 I->replaceAllUsesWith(NewI); in doOneIteration()
258 I = NewI->getIterator(); in doOneIteration()
442 if (auto *NewI = tryReassociateBinaryOp(LHS, RHS, I)) in tryReassociateBinaryOp() local
443 return NewI; in tryReassociateBinaryOp()
444 if (auto *NewI = tryReassociateBinaryOp(RHS, LHS, I)) in tryReassociateBinaryOp() local
445 return NewI; in tryReassociateBinaryOp()
460 if (auto *NewI = in tryReassociateBinaryOp() local
462 return NewI; in tryReassociateBinaryOp()
465 if (auto *NewI = in tryReassociateBinaryOp() local
467 return NewI; in tryReassociateBinaryOp()
482 Instruction *NewI = nullptr; in tryReassociatedBinaryOp() local
485 NewI = BinaryOperator::CreateAdd(LHS, RHS, "", I); in tryReassociatedBinaryOp()
488 NewI = BinaryOperator::CreateMul(LHS, RHS, "", I); in tryReassociatedBinaryOp()
493 NewI->takeName(I); in tryReassociatedBinaryOp()
494 return NewI; in tryReassociatedBinaryOp()