Home
last modified time | relevance | path

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