Searched refs:TopLevelOpcode (Results 1 – 2 of 2) sorted by relevance
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstructionCombining.cpp | 704 Instruction::BinaryOps TopLevelOpcode = I.getOpcode(); in tryFactorization() local 710 if (leftDistributesOverRight(InnerOpcode, TopLevelOpcode)) { in tryFactorization() 718 V = simplifyBinOp(TopLevelOpcode, B, D, SQ.getWithInstruction(&I)); in tryFactorization() 723 V = Builder.CreateBinOp(TopLevelOpcode, B, D, RHS->getName()); in tryFactorization() 730 if (!RetVal && rightDistributesOverLeft(TopLevelOpcode, InnerOpcode)) { in tryFactorization() 738 V = simplifyBinOp(TopLevelOpcode, A, C, SQ.getWithInstruction(&I)); in tryFactorization() 743 V = Builder.CreateBinOp(TopLevelOpcode, A, C, LHS->getName()); in tryFactorization() 773 if (TopLevelOpcode == Instruction::Add && InnerOpcode == Instruction::Mul) { in tryFactorization() 1114 Instruction::BinaryOps TopLevelOpcode = I.getOpcode(); in tryFactorizationFolds() local 1119 LHSOpcode = getBinOpsForFactorization(TopLevelOpcode, Op0, A, B, Op1); in tryFactorizationFolds() [all …]
|
| H A D | InstCombineCalls.cpp | 1626 Intrinsic::ID TopLevelOpcode = II->getIntrinsicID(); in foldIntrinsicUsingDistributiveLaws() local 1645 if (!leftDistributesOverRight(InnerOpcode, HasNUW, HasNSW, TopLevelOpcode)) in foldIntrinsicUsingDistributiveLaws() 1664 Value *NewIntrinsic = Builder.CreateBinaryIntrinsic(TopLevelOpcode, B, D); in foldIntrinsicUsingDistributiveLaws() 1668 Value *NewIntrinsic = Builder.CreateBinaryIntrinsic(TopLevelOpcode, A, C); in foldIntrinsicUsingDistributiveLaws()
|