Home
last modified time | relevance | path

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

12

/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DInlineAsm.cpp94 isCommutative = false; in Parse()
136 isCommutative) // Reject %%%%% in Parse()
138 isCommutative = true; in Parse()
H A DInstruction.cpp1111 bool Instruction::isCommutative() const { in isCommutative() function in Instruction
1113 return II->isCommutative(); in isCommutative()
1115 return isCommutative(getOpcode()); in isCommutative()
H A DConstantFold.cpp884 if (Instruction::isCommutative(Opcode)) in ConstantFoldBinaryInstruction()
1034 if (Instruction::isCommutative(Opcode)) in ConstantFoldBinaryInstruction()
H A DInstructions.cpp3027 if (!isCommutative()) in swapOperands()
4041 bool CmpInst::isCommutative() const { in isCommutative() function in CmpInst
4043 return IC->isCommutative(); in isCommutative()
4044 return cast<FCmpInst>(this)->isCommutative(); in isCommutative()
/freebsd-14.2/contrib/llvm-project/llvm/utils/TableGen/
H A DCodeGenIntrinsics.cpp64 isCommutative = false; in CodeGenIntrinsic()
182 isCommutative = true; in setProperty()
H A DCodeGenIntrinsics.h67 bool isCommutative; member
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstruction.h675 bool isCommutative() const LLVM_READONLY;
676 static bool isCommutative(unsigned Opcode) {
H A DInlineAsm.h144 bool isCommutative = false; member
H A DIntrinsicInst.h72 bool isCommutative() const { in isCommutative() function
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVGatherScatterLowering.cpp151 if (!Splat && Instruction::isCommutative(BO->getOpcode())) { in matchStridedStart()
272 Instruction::isCommutative(BO->getOpcode())) { in matchStridedRecurrence()
H A DRISCVTargetTransformInfo.cpp212 if (Instruction::isCommutative(Opcode) || Idx == ImmArgIdx) { in getIntImmCostInst()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DEarlyCSE.cpp241 if (BinOp->isCommutative() && BinOp->getOperand(0) > BinOp->getOperand(1)) in getHashValueImpl()
318 if (II && II->isCommutative() && II->arg_size() >= 2) { in getHashValueImpl()
378 if (!LHSBinOp->isCommutative()) in isEqualImpl()
402 LII->isCommutative() && LII->arg_size() >= 2) { in isEqualImpl()
H A DReassociate.cpp238 assert(I->isCommutative() && "Expected commutative operator."); in canonicalizeOperands()
476 assert(I->isAssociative() && I->isCommutative() && in LinearizeExprTree()
2246 if (I->isCommutative()) in OptimizeInst()
H A DTailRecursionElimination.cpp369 if (!I->isAssociative() || !I->isCommutative()) in canTransformAccumulatorRecursion()
H A DNewGVN.cpp1078 if (Instruction::isCommutative(Opcode)) { in createBinaryExpression()
1151 if (I->isCommutative()) { in createExpression()
1280 if (CI->isCommutative()) { in createCallExpression()
H A DLoopRerollPass.cpp1364 if (!Swapped && BaseInst->isCommutative() && !SomeOpMatched && in validate()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanSLP.cpp166 return Instruction::isCommutative( in areCommutative()
H A DSLPVectorizer.cpp289 static bool isCommutative(Instruction *I) { in isCommutative() function
291 return Cmp->isCommutative(); in isCommutative()
293 return BO->isCommutative(); in isCommutative()
1467 unsigned FromIdx = isCommutative(I2) ? 0 : OpIdx1; in getScoreAtLevelRec()
1468 unsigned ToIdx = isCommutative(I2) in getScoreAtLevelRec()
1934 bool IsInverseOperation = !isCommutative(cast<Instruction>(VL[Lane])); in appendOperandsOfVL()
5190 if (CI->isCommutative()) in generateKeySubkey()
5683 bool IsCommutative = isCommutative(S.MainOp) || isCommutative(S.AltOp); in buildTree_rec()
6079 if (cast<CmpInst>(VL0)->isCommutative()) { in buildTree_rec()
6129 if (isa<BinaryOperator>(VL0) && VL0->isCommutative()) { in buildTree_rec()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp410 if (I.isCommutative() && getComplexity(I.getOperand(0)) < in SimplifyAssociativeOrCommutative()
414 if (I.isCommutative()) { in SimplifyAssociativeOrCommutative()
480 if (I.isAssociative() && I.isCommutative()) { in SimplifyAssociativeOrCommutative()
594 if (Instruction::isCommutative(ROp)) in rightDistributesOverLeft()
658 bool InnerCommutative = Instruction::isCommutative(InnerOpcode); in tryFactorization()
1893 if (Inst.isCommutative() && in foldVectorBinop()
2002 if (Inst.isAssociative() && Inst.isCommutative()) { in foldVectorBinop()
H A DInstCombineNegator.cpp118 if (I->isCommutative() && InstCombiner::getComplexity(I->getOperand(0)) < in getSortedOperandsOfBinOp()
H A DInstCombineSimplifyDemanded.cpp1848 if (BO->isCommutative() in SimplifyDemandedVectorElts()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonVectorLoopCarriedReuse.cpp438 if ((I && I->isCommutative()) || (C1 && isCallInstCommutative(C1))) { in findValueToReuse()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DInterleavedLoadCombinePass.cpp913 if ((!C) && BO.isCommutative()) { in computePolynomialBinOp()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DIVDescriptors.cpp366 if (!Cur->isCommutative() && !IsAPhi && !isa<SelectInst>(Cur) && in AddReductionVar()
H A DIRSimilarityIdentifier.cpp840 if (IA->isCommutative() && !isa<FPMathOperator>(IA) && in compareStructure()

12