Home
last modified time | relevance | path

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

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstructionCombining.cpp564 Instruction::BinaryOps TopLevelOpcode = I.getOpcode(); in tryFactorization() local
570 if (leftDistributesOverRight(InnerOpcode, TopLevelOpcode)) in tryFactorization()
578 V = SimplifyBinOp(TopLevelOpcode, B, D, SQ.getWithInstruction(&I)); in tryFactorization()
582 V = Builder.CreateBinOp(TopLevelOpcode, B, D, RHS->getName()); in tryFactorization()
589 if (!SimplifiedInst && rightDistributesOverLeft(TopLevelOpcode, InnerOpcode)) in tryFactorization()
597 V = SimplifyBinOp(TopLevelOpcode, A, C, SQ.getWithInstruction(&I)); in tryFactorization()
602 V = Builder.CreateBinOp(TopLevelOpcode, A, C, LHS->getName()); in tryFactorization()
632 if (TopLevelOpcode == Instruction::Add && in tryFactorization()
665 Instruction::BinaryOps TopLevelOpcode = I.getOpcode(); in SimplifyUsingDistributiveLaws() local
672 LHSOpcode = getBinOpsForFactorization(TopLevelOpcode, Op0, A, B); in SimplifyUsingDistributiveLaws()
[all …]