Home
last modified time | relevance | path

Searched refs:TopLevelOpcode (Results 1 – 1 of 1) sorted by relevance

/openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp647 Instruction::BinaryOps TopLevelOpcode = I.getOpcode(); in tryFactorization() local
653 if (leftDistributesOverRight(InnerOpcode, TopLevelOpcode)) { in tryFactorization()
661 V = simplifyBinOp(TopLevelOpcode, B, D, SQ.getWithInstruction(&I)); in tryFactorization()
666 V = Builder.CreateBinOp(TopLevelOpcode, B, D, RHS->getName()); in tryFactorization()
673 if (!RetVal && rightDistributesOverLeft(TopLevelOpcode, InnerOpcode)) { in tryFactorization()
681 V = simplifyBinOp(TopLevelOpcode, A, C, SQ.getWithInstruction(&I)); in tryFactorization()
686 V = Builder.CreateBinOp(TopLevelOpcode, A, C, LHS->getName()); in tryFactorization()
716 if (TopLevelOpcode == Instruction::Add && InnerOpcode == Instruction::Mul) { in tryFactorization()
739 Instruction::BinaryOps TopLevelOpcode = I.getOpcode(); in tryFactorizationFolds() local
744 LHSOpcode = getBinOpsForFactorization(TopLevelOpcode, Op0, A, B); in tryFactorizationFolds()
[all …]