Home
last modified time | relevance | path

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

12

/freebsd-12.1/contrib/llvm/lib/IR/
H A DInlineAsm.cpp80 isCommutative = false; in Parse()
119 isCommutative) // Reject %%%%% in Parse()
121 isCommutative = true; in Parse()
H A DInstructions.cpp2253 if (!isCommutative()) in swapOperands()
3352 bool CmpInst::isCommutative() const { in isCommutative() function in CmpInst
3354 return IC->isCommutative(); in isCommutative()
3355 return cast<FCmpInst>(this)->isCommutative(); in isCommutative()
H A DConstantFold.cpp1128 if (Instruction::isCommutative(Opcode)) in ConstantFoldBinaryInstruction()
1254 if (Instruction::isCommutative(Opcode)) in ConstantFoldBinaryInstruction()
H A DConstants.cpp2331 if (Instruction::isCommutative(Opcode)) { in getBinOpIdentity()
/freebsd-12.1/contrib/llvm/include/llvm/IR/
H A DInstruction.h478 bool isCommutative() const { return isCommutative(getOpcode()); }
479 static bool isCommutative(unsigned Opcode) {
H A DInlineAsm.h139 bool isCommutative = false; member
H A DInstrTypes.h808 bool isCommutative() const;
H A DInstructions.h1291 bool isCommutative() const { return isEquality(); }
1401 bool isCommutative() const {
/freebsd-12.1/contrib/llvm/utils/TableGen/
H A DCodeGenIntrinsics.h116 bool isCommutative; member
H A DCodeGenTarget.cpp536 isCommutative = false; in CodeGenIntrinsic()
677 isCommutative = true; in CodeGenIntrinsic()
/freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/
H A DSpeculateAroundPHIs.cpp265 if (UserI->isBinaryOp() && UserI->isCommutative() && Idx != 1) in isSafeAndProfitableToSpeculateAroundPHI()
677 if (NewI->isBinaryOp() && NewI->isCommutative() && in speculatePHIs()
H A DReassociate.cpp223 assert(I->isCommutative() && "Expected commutative operator."); in canonicalizeOperands()
453 assert(I->isAssociative() && I->isCommutative() && in LinearizeExprTree()
1956 if (!User->isCommutative() && User->getOperand(1) != I) in canonicalizeNegConstExpr()
1972 if (User->getOperand(0) == I && User->isCommutative()) in canonicalizeNegConstExpr()
2027 if (I->isCommutative()) in OptimizeInst()
H A DEarlyCSE.cpp135 if (BinOp->isCommutative() && BinOp->getOperand(0) > BinOp->getOperand(1)) in getHashValue()
207 if (!LHSBinOp->isCommutative()) in isEqual()
H A DTailRecursionElimination.cpp424 if (!I->isAssociative() || !I->isCommutative()) return nullptr; in canTransformAccumulatorRecursion()
H A DLoopRerollPass.cpp1368 if (!Swapped && BaseInst->isCommutative() && !SomeOpMatched && in validate()
H A DNewGVN.cpp1044 if (Instruction::isCommutative(Opcode)) { in createBinaryExpression()
1127 if (I->isCommutative()) { in createExpression()
H A DGVN.cpp278 if (I->isCommutative()) { in createExpr()
/freebsd-12.1/contrib/llvm/lib/Transforms/Vectorize/
H A DVPlanSLP.cpp172 return Instruction::isCommutative( in areCommutative()
H A DSLPVectorizer.cpp1764 if (isa<BinaryOperator>(VL0) && VL0->isCommutative()) { in buildTree_rec()
2670 if (VL1->isCommutative() && isConsecutiveAccess(L, L1, *DL, *SE)) { in reorderAltShuffleOperands()
2673 } else if (VL2->isCommutative() && in reorderAltShuffleOperands()
2685 if (VL1->isCommutative() && isConsecutiveAccess(L, L1, *DL, *SE)) { in reorderAltShuffleOperands()
2688 } else if (VL2->isCommutative() && in reorderAltShuffleOperands()
2792 assert(((I->getOpcode() == Opcode && I->isCommutative()) || in reorderInputsAccordingToOpcode()
2793 (I->getOpcode() != Opcode && Instruction::isCommutative(Opcode))) && in reorderInputsAccordingToOpcode()
3285 if (isa<BinaryOperator>(VL0) && VL0->isCommutative()) in vectorizeTree()
/freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp309 if (I.isCommutative() && getComplexity(I.getOperand(0)) < in SimplifyAssociativeOrCommutative()
367 if (I.isAssociative() && I.isCommutative()) { in SimplifyAssociativeOrCommutative()
472 if (Instruction::isCommutative(ROp)) in rightDistributesOverLeft()
528 bool InnerCommutative = Instruction::isCommutative(InnerOpcode); in tryFactorization()
H A DInstCombineSelect.cpp96 if (!BO->isCommutative() && !match(BO, m_BinOp(m_Value(Y), m_Specific(X)))) in foldSelectBinOpIdentity()
358 } else if (!TI->isCommutative()) { in foldSelectOpOp()
/freebsd-12.1/contrib/llvm/lib/CodeGen/
H A DInterleavedLoadCombinePass.cpp909 if ((!C) && BO.isCommutative()) { in computePolynomialBinOp()
/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DIVDescriptors.cpp288 if (!Cur->isCommutative() && !IsAPhi && !isa<SelectInst>(Cur) && in AddReductionVar()
H A DInstructionSimplify.cpp184 if ((L == A && R == B) || (Instruction::isCommutative(OpcodeToExpand) in ExpandBinOp()
207 if ((L == B && R == C) || (Instruction::isCommutative(OpcodeToExpand) in ExpandBinOp()
277 if (!Instruction::isCommutative(Opcode)) in SimplifyAssociativeBinOp()
384 if (Simplified->isCommutative() && in ThreadBinOpOverSelect()
564 if (Instruction::isCommutative(Opcode)) in foldOrCommuteConstant()
/freebsd-12.1/contrib/llvm/lib/CodeGen/SelectionDAG/
H A DFastISel.cpp608 if (isa<Instruction>(I) && cast<Instruction>(I)->isCommutative()) { in selectBinaryOp()

12