Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/InstCombine/
DInstructionCombining.cpp421 getBinOpsForFactorization(Instruction::BinaryOps TopLevelOpcode, in getBinOpsForFactorization() argument
429 switch (TopLevelOpcode) { in getBinOpsForFactorization()
463 Instruction::BinaryOps TopLevelOpcode = I.getOpcode(); in tryFactorization() local
469 if (LeftDistributesOverRight(InnerOpcode, TopLevelOpcode)) in tryFactorization()
477 V = SimplifyBinOp(TopLevelOpcode, B, D, DL); in tryFactorization()
481 V = Builder->CreateBinOp(TopLevelOpcode, B, D, RHS->getName()); in tryFactorization()
488 if (!SimplifiedInst && RightDistributesOverLeft(TopLevelOpcode, InnerOpcode)) in tryFactorization()
496 V = SimplifyBinOp(TopLevelOpcode, A, C, DL); in tryFactorization()
501 V = Builder->CreateBinOp(TopLevelOpcode, A, C, LHS->getName()); in tryFactorization()
535 if (TopLevelOpcode == Instruction::Add && in tryFactorization()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstructionCombining.cpp518 Instruction::BinaryOps TopLevelOpcode = I.getOpcode(); in tryFactorization() local
524 if (leftDistributesOverRight(InnerOpcode, TopLevelOpcode)) in tryFactorization()
532 V = SimplifyBinOp(TopLevelOpcode, B, D, SQ.getWithInstruction(&I)); in tryFactorization()
536 V = Builder.CreateBinOp(TopLevelOpcode, B, D, RHS->getName()); in tryFactorization()
543 if (!SimplifiedInst && rightDistributesOverLeft(TopLevelOpcode, InnerOpcode)) in tryFactorization()
551 V = SimplifyBinOp(TopLevelOpcode, A, C, SQ.getWithInstruction(&I)); in tryFactorization()
556 V = Builder.CreateBinOp(TopLevelOpcode, A, C, LHS->getName()); in tryFactorization()
588 if (TopLevelOpcode == Instruction::Add && in tryFactorization()
607 Instruction::BinaryOps TopLevelOpcode = I.getOpcode(); in SimplifyUsingDistributiveLaws() local
614 LHSOpcode = getBinOpsForFactorization(TopLevelOpcode, Op0, A, B); in SimplifyUsingDistributiveLaws()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstructionCombining.cpp370 Instruction::BinaryOps TopLevelOpcode = I.getOpcode(); // op in SimplifyUsingDistributiveLaws() local
384 if (LeftDistributesOverRight(InnerOpcode, TopLevelOpcode)) in SimplifyUsingDistributiveLaws()
392 Value *V = SimplifyBinOp(TopLevelOpcode, B, D, TD); in SimplifyUsingDistributiveLaws()
396 V = Builder->CreateBinOp(TopLevelOpcode, B, D, Op1->getName()); in SimplifyUsingDistributiveLaws()
406 if (RightDistributesOverLeft(TopLevelOpcode, InnerOpcode)) in SimplifyUsingDistributiveLaws()
414 Value *V = SimplifyBinOp(TopLevelOpcode, A, C, TD); in SimplifyUsingDistributiveLaws()
418 V = Builder->CreateBinOp(TopLevelOpcode, A, C, Op0->getName()); in SimplifyUsingDistributiveLaws()
429 if (Op0 && RightDistributesOverLeft(Op0->getOpcode(), TopLevelOpcode)) { in SimplifyUsingDistributiveLaws()
436 if (Value *L = SimplifyBinOp(TopLevelOpcode, A, C, TD)) in SimplifyUsingDistributiveLaws()
437 if (Value *R = SimplifyBinOp(TopLevelOpcode, B, C, TD)) { in SimplifyUsingDistributiveLaws()
[all …]