Home
last modified time | relevance | path

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

/aosp_15_r20/external/llvm/lib/Transforms/InstCombine/
H A 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 …]
/aosp_15_r20/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
H A 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 …]
/aosp_15_r20/external/swiftshader/third_party/llvm-16.0/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp647 Instruction::BinaryOps TopLevelOpcode = I.getOpcode(); in tryFactorization() local
653 if (leftDistributesOverRight(InnerOpcode, TopLevelOpcode)) { in tryFactorization()
661 V = simplifyBinOp(TopLevelOpcode, B, D, SQ.getWithInstruction(&I)); in tryFactorization()
666 V = Builder.CreateBinOp(TopLevelOpcode, B, D, RHS->getName()); in tryFactorization()
673 if (!RetVal && rightDistributesOverLeft(TopLevelOpcode, InnerOpcode)) { in tryFactorization()
681 V = simplifyBinOp(TopLevelOpcode, A, C, SQ.getWithInstruction(&I)); in tryFactorization()
686 V = Builder.CreateBinOp(TopLevelOpcode, A, C, LHS->getName()); in tryFactorization()
716 if (TopLevelOpcode == Instruction::Add && InnerOpcode == Instruction::Mul) { in tryFactorization()
739 Instruction::BinaryOps TopLevelOpcode = I.getOpcode(); in tryFactorizationFolds() local
744 LHSOpcode = getBinOpsForFactorization(TopLevelOpcode, Op0, A, B); in tryFactorizationFolds()
[all …]