Home
last modified time | relevance | path

Searched refs:isCommutative (Results 1 – 25 of 35) sorted by relevance

12

/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DInlineAsm.cpp80 isCommutative = false; in Parse()
119 isCommutative) // Reject %%%%% in Parse()
121 isCommutative = true; in Parse()
H A DInstruction.cpp758 bool Instruction::isCommutative() const { in isCommutative() function in Instruction
760 return II->isCommutative(); in isCommutative()
762 return isCommutative(getOpcode()); in isCommutative()
H A DInstructions.cpp2639 if (!isCommutative()) in swapOperands()
3674 bool CmpInst::isCommutative() const { in isCommutative() function in CmpInst
3676 return IC->isCommutative(); in isCommutative()
3677 return cast<FCmpInst>(this)->isCommutative(); in isCommutative()
H A DConstantFold.cpp1119 if (Instruction::isCommutative(Opcode)) in ConstantFoldBinaryInstruction()
1258 if (Instruction::isCommutative(Opcode)) in ConstantFoldBinaryInstruction()
/freebsd-13.1/contrib/llvm-project/llvm/utils/TableGen/
H A DCodeGenIntrinsics.h115 bool isCommutative; member
H A DCodeGenTarget.cpp666 isCommutative = false; in CodeGenIntrinsic()
859 isCommutative = true; in setProperty()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.cpp75 if (Instruction::isCommutative(Opcode) || Idx == ImmArgIdx) { in getIntImmCostInst()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstruction.h556 bool isCommutative() const LLVM_READONLY;
557 static bool isCommutative(unsigned Opcode) {
H A DInlineAsm.h141 bool isCommutative = false; member
H A DIntrinsicInst.h58 bool isCommutative() const { in isCommutative() function
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DEarlyCSE.cpp216 if (BinOp->isCommutative() && BinOp->getOperand(0) > BinOp->getOperand(1)) in getHashValueImpl()
296 if (II && II->isCommutative() && II->getNumArgOperands() == 2) { in getHashValueImpl()
341 if (!LHSBinOp->isCommutative()) in isEqualImpl()
366 LII->isCommutative() && LII->getNumArgOperands() == 2) { in isEqualImpl()
H A DReassociate.cpp224 assert(I->isCommutative() && "Expected commutative operator."); in canonicalizeOperands()
460 assert(I->isAssociative() && I->isCommutative() && in LinearizeExprTree()
2193 if (I->isCommutative()) in OptimizeInst()
H A DTailRecursionElimination.cpp372 if (!I->isAssociative() || !I->isCommutative()) in canTransformAccumulatorRecursion()
H A DLoopRerollPass.cpp1401 if (!Swapped && BaseInst->isCommutative() && !SomeOpMatched && in validate()
H A DNewGVN.cpp1079 if (Instruction::isCommutative(Opcode)) { in createBinaryExpression()
1149 if (I->isCommutative()) { in createExpression()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanSLP.cpp174 return Instruction::isCommutative( in areCommutative()
H A DSLPVectorizer.cpp244 static bool isCommutative(Instruction *I) { in isCommutative() function
246 return Cmp->isCommutative(); in isCommutative()
248 return BO->isCommutative(); in isCommutative()
1146 unsigned FromIdx = isCommutative(I2) ? 0 : OpIdx1; in getScoreAtLevelRec()
1147 unsigned ToIdx = isCommutative(I2) in getScoreAtLevelRec()
1320 bool IsInverseOperation = !isCommutative(cast<Instruction>(VL[Lane])); in appendOperandsOfVL()
3098 if (cast<CmpInst>(VL0)->isCommutative()) { in buildTree_rec()
3147 if (isa<BinaryOperator>(VL0) && VL0->isCommutative()) { in buildTree_rec()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineNegator.cpp125 if (I->isCommutative() && InstCombiner::getComplexity(I->getOperand(0)) < in getSortedOperandsOfBinOp()
H A DInstructionCombining.cpp396 if (I.isCommutative() && getComplexity(I.getOperand(0)) < in SimplifyAssociativeOrCommutative()
458 if (I.isAssociative() && I.isCommutative()) { in SimplifyAssociativeOrCommutative()
571 if (Instruction::isCommutative(ROp)) in rightDistributesOverLeft()
628 bool InnerCommutative = Instruction::isCommutative(InnerOpcode); in tryFactorization()
1642 if (Inst.isCommutative() && in foldVectorBinop()
1749 if (Inst.isAssociative() && Inst.isCommutative()) { in foldVectorBinop()
H A DInstCombineSelect.cpp98 if (!BO->isCommutative() && !match(BO, m_BinOp(m_Value(Y), m_Specific(X)))) in foldSelectBinOpIdentity()
377 } else if (!TI->isCommutative()) { in foldSelectOpOp()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonVectorLoopCarriedReuse.cpp441 if ((I && I->isCommutative()) || (C1 && isCallInstCommutative(C1))) { in findValueToReuse()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DIRSimilarityIdentifier.cpp622 if (IA->isCommutative() && !isa<FPMathOperator>(IA)) { in compareStructure()
H A DIVDescriptors.cpp321 if (!Cur->isCommutative() && !IsAPhi && !isa<SelectInst>(Cur) && in AddReductionVar()
H A DInstructionSimplify.cpp261 (Instruction::isCommutative(OpcodeToExpand) && L == B1 && R == B0)) { in expandBinOp()
347 if (!Instruction::isCommutative(Opcode)) in SimplifyAssociativeBinOp()
454 if (Simplified->isCommutative() && in ThreadBinOpOverSelect()
610 if (Instruction::isCommutative(Opcode)) in foldOrCommuteConstant()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DInterleavedLoadCombinePass.cpp910 if ((!C) && BO.isCommutative()) { in computePolynomialBinOp()

12