Home
last modified time | relevance | path

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

/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstructionCombining.cpp378 Instruction::BinaryOps InnerOpcode = Op0->getOpcode(); // op' in SimplifyUsingDistributiveLaws() local
381 bool InnerCommutative = Instruction::isCommutative(InnerOpcode); in SimplifyUsingDistributiveLaws()
384 if (LeftDistributesOverRight(InnerOpcode, TopLevelOpcode)) in SimplifyUsingDistributiveLaws()
399 V = Builder->CreateBinOp(InnerOpcode, A, V); in SimplifyUsingDistributiveLaws()
406 if (RightDistributesOverLeft(TopLevelOpcode, InnerOpcode)) in SimplifyUsingDistributiveLaws()
421 V = Builder->CreateBinOp(InnerOpcode, V, B); in SimplifyUsingDistributiveLaws()
433 Instruction::BinaryOps InnerOpcode = Op0->getOpcode(); // op' in SimplifyUsingDistributiveLaws() local
442 (Instruction::isCommutative(InnerOpcode) && L == B && R == A)) in SimplifyUsingDistributiveLaws()
445 if (Value *V = SimplifyBinOp(InnerOpcode, L, R, TD)) in SimplifyUsingDistributiveLaws()
448 C = Builder->CreateBinOp(InnerOpcode, L, R); in SimplifyUsingDistributiveLaws()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstructionCombining.cpp452 Instruction::BinaryOps InnerOpcode, Value *A, in tryFactorization() argument
466 bool InnerCommutative = Instruction::isCommutative(InnerOpcode); in tryFactorization()
469 if (LeftDistributesOverRight(InnerOpcode, TopLevelOpcode)) in tryFactorization()
483 SimplifiedInst = Builder->CreateBinOp(InnerOpcode, A, V); in tryFactorization()
488 if (!SimplifiedInst && RightDistributesOverLeft(TopLevelOpcode, InnerOpcode)) in tryFactorization()
503 SimplifiedInst = Builder->CreateBinOp(InnerOpcode, V, B); in tryFactorization()
536 InnerOpcode == Instruction::Mul) in tryFactorization()
585 Instruction::BinaryOps InnerOpcode = Op0->getOpcode(); // op' in SimplifyUsingDistributiveLaws() local
594 (Instruction::isCommutative(InnerOpcode) && L == B && R == A)) in SimplifyUsingDistributiveLaws()
597 if (Value *V = SimplifyBinOp(InnerOpcode, L, R, DL)) in SimplifyUsingDistributiveLaws()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstructionCombining.cpp511 Instruction::BinaryOps InnerOpcode, in tryFactorization() argument
521 bool InnerCommutative = Instruction::isCommutative(InnerOpcode); in tryFactorization()
524 if (leftDistributesOverRight(InnerOpcode, TopLevelOpcode)) in tryFactorization()
538 SimplifiedInst = Builder.CreateBinOp(InnerOpcode, A, V); in tryFactorization()
543 if (!SimplifiedInst && rightDistributesOverLeft(TopLevelOpcode, InnerOpcode)) in tryFactorization()
558 SimplifiedInst = Builder.CreateBinOp(InnerOpcode, V, B); in tryFactorization()
589 InnerOpcode == Instruction::Mul) in tryFactorization()
644 Instruction::BinaryOps InnerOpcode = Op0->getOpcode(); // op' in SimplifyUsingDistributiveLaws() local
653 C = Builder.CreateBinOp(InnerOpcode, L, R); in SimplifyUsingDistributiveLaws()
659 if (L && L == ConstantExpr::getBinOpIdentity(InnerOpcode, L->getType())) { in SimplifyUsingDistributiveLaws()
[all …]