Home
last modified time | relevance | path

Searched refs:TopLevelOpcode (Results 1 – 2 of 2) 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/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 …]