Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/llvm/lib/IR/
H A DInlineAsm.cpp81 isCommutative = false; in Parse()
123 isCommutative) // Reject %%%%% in Parse()
125 isCommutative = true; in Parse()
H A DInstruction.cpp770 bool Instruction::isCommutative() const { in isCommutative() function in Instruction
772 return II->isCommutative(); in isCommutative()
774 return isCommutative(getOpcode()); in isCommutative()
H A DInstructions.cpp2856 if (!isCommutative()) in swapOperands()
3893 bool CmpInst::isCommutative() const { in isCommutative() function in CmpInst
3895 return IC->isCommutative(); in isCommutative()
3896 return cast<FCmpInst>(this)->isCommutative(); in isCommutative()
H A DConstantFold.cpp1123 if (Instruction::isCommutative(Opcode)) in ConstantFoldBinaryInstruction()
1271 if (Instruction::isCommutative(Opcode)) in ConstantFoldBinaryInstruction()
/llvm-project-15.0.7/mlir/tools/mlir-tblgen/
H A DLLVMIRIntrinsicGen.cpp163 bool isCommutative() const { in isCommutative() function in __anon725579a20111::LLVMIntrinsic
211 if (intr.isCommutative()) in emitIntrinsic()
/llvm-project-15.0.7/llvm/utils/TableGen/
H A DCodeGenIntrinsics.h114 bool isCommutative; member
H A DCodeGenTarget.cpp671 isCommutative = false; in CodeGenIntrinsic()
862 isCommutative = true; in setProperty()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DInstruction.h540 bool isCommutative() const LLVM_READONLY;
541 static bool isCommutative(unsigned Opcode) {
H A DInlineAsm.h141 bool isCommutative = false; member
H A DIntrinsicInst.h59 bool isCommutative() const { in isCommutative() function
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DEarlyCSE.cpp211 if (BinOp->isCommutative() && BinOp->getOperand(0) > BinOp->getOperand(1)) in getHashValueImpl()
291 if (II && II->isCommutative() && II->arg_size() == 2) { in getHashValueImpl()
336 if (!LHSBinOp->isCommutative()) in isEqualImpl()
361 LII->isCommutative() && LII->arg_size() == 2) { in isEqualImpl()
H A DReassociate.cpp231 assert(I->isCommutative() && "Expected commutative operator."); in canonicalizeOperands()
468 assert(I->isAssociative() && I->isCommutative() && in LinearizeExprTree()
2221 if (I->isCommutative()) in OptimizeInst()
H A DTailRecursionElimination.cpp367 if (!I->isAssociative() || !I->isCommutative()) in canTransformAccumulatorRecursion()
H A DLoopRerollPass.cpp1396 if (!Swapped && BaseInst->isCommutative() && !SomeOpMatched && in validate()
/llvm-project-15.0.7/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.cpp90 if (Instruction::isCommutative(Opcode) || Idx == ImmArgIdx) { in getIntImmCostInst()
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DVPlanSLP.cpp165 return Instruction::isCommutative( in areCommutative()
H A DSLPVectorizer.cpp276 static bool isCommutative(Instruction *I) { in isCommutative() function
278 return Cmp->isCommutative(); in isCommutative()
280 return BO->isCommutative(); in isCommutative()
1291 unsigned FromIdx = isCommutative(I2) ? 0 : OpIdx1; in getScoreAtLevelRec()
1292 unsigned ToIdx = isCommutative(I2) in getScoreAtLevelRec()
1756 bool IsInverseOperation = !isCommutative(cast<Instruction>(VL[Lane])); in appendOperandsOfVL()
4513 if (CI->isCommutative()) in generateKeySubkey()
4663 bool IsCommutative = isCommutative(S.MainOp) || isCommutative(S.AltOp); in buildTree_rec()
5114 if (cast<CmpInst>(VL0)->isCommutative()) { in buildTree_rec()
5163 if (isa<BinaryOperator>(VL0) && VL0->isCommutative()) { in buildTree_rec()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineNegator.cpp125 if (I->isCommutative() && InstCombiner::getComplexity(I->getOperand(0)) < in getSortedOperandsOfBinOp()
H A DInstructionCombining.cpp414 if (I.isCommutative() && getComplexity(I.getOperand(0)) < in SimplifyAssociativeOrCommutative()
476 if (I.isAssociative() && I.isCommutative()) { in SimplifyAssociativeOrCommutative()
590 if (Instruction::isCommutative(ROp)) in rightDistributesOverLeft()
647 bool InnerCommutative = Instruction::isCommutative(InnerOpcode); in tryFactorization()
1725 if (Inst.isCommutative() && in foldVectorBinop()
1833 if (Inst.isAssociative() && Inst.isCommutative()) { in foldVectorBinop()
H A DInstCombineShifts.cpp971 if (Op0BO->isCommutative() && Y->hasOneUse() && in visitShl()
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonVectorLoopCarriedReuse.cpp438 if ((I && I->isCommutative()) || (C1 && isCallInstCommutative(C1))) { in findValueToReuse()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DInterleavedLoadCombinePass.cpp907 if ((!C) && BO.isCommutative()) { in computePolynomialBinOp()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DIRSimilarityIdentifier.cpp797 if (IA->isCommutative() && !isa<FPMathOperator>(IA) && in compareStructure()
H A DIVDescriptors.cpp369 if (!Cur->isCommutative() && !IsAPhi && !isa<SelectInst>(Cur) && in AddReductionVar()
H A DInstructionSimplify.cpp256 (Instruction::isCommutative(OpcodeToExpand) && L == B1 && R == B0)) { in expandBinOp()
344 if (!Instruction::isCommutative(Opcode)) in simplifyAssociativeBinOp()
453 if (Simplified->isCommutative() && in threadBinOpOverSelect()
622 if (Instruction::isCommutative(Opcode)) in foldOrCommuteConstant()

12