Home
last modified time | relevance | path

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

12

/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DInlineAsm.cpp94 isCommutative = false; in Parse()
136 isCommutative) // Reject %%%%% in Parse()
138 isCommutative = true; in Parse()
H A DInstruction.cpp816 bool Instruction::isCommutative() const { in isCommutative() function in Instruction
818 return II->isCommutative(); in isCommutative()
820 return isCommutative(getOpcode()); in isCommutative()
H A DInstructions.cpp3025 if (!isCommutative()) in swapOperands()
4062 bool CmpInst::isCommutative() const { in isCommutative() function in CmpInst
4064 return IC->isCommutative(); in isCommutative()
4065 return cast<FCmpInst>(this)->isCommutative(); in isCommutative()
H A DConstantFold.cpp1124 if (Instruction::isCommutative(Opcode)) in ConstantFoldBinaryInstruction()
1272 if (Instruction::isCommutative(Opcode)) in ConstantFoldBinaryInstruction()
/openbsd-src/gnu/llvm/llvm/utils/TableGen/
H A DCodeGenIntrinsics.h73 bool isCommutative; member
H A DCodeGenTarget.cpp679 isCommutative = false; in CodeGenIntrinsic()
870 isCommutative = true; in setProperty()
/openbsd-src/gnu/llvm/llvm/include/llvm/IR/
H A DInstruction.h578 bool isCommutative() const LLVM_READONLY;
579 static bool isCommutative(unsigned Opcode) {
H A DInlineAsm.h143 bool isCommutative = false; member
H A DIntrinsicInst.h60 bool isCommutative() const { in isCommutative() function
H A DInstrTypes.h939 bool isCommutative() const;
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DEarlyCSE.cpp227 if (BinOp->isCommutative() && BinOp->getOperand(0) > BinOp->getOperand(1)) in getHashValueImpl()
307 if (II && II->isCommutative() && II->arg_size() == 2) { in getHashValueImpl()
352 if (!LHSBinOp->isCommutative()) in isEqualImpl()
377 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()
2209 if (I->isCommutative()) in OptimizeInst()
H A DTailRecursionElimination.cpp369 if (!I->isAssociative() || !I->isCommutative()) in canTransformAccumulatorRecursion()
H A DLoopRerollPass.cpp1394 if (!Swapped && BaseInst->isCommutative() && !SomeOpMatched && in validate()
H A DNewGVN.cpp1081 if (Instruction::isCommutative(Opcode)) { in createBinaryExpression()
1154 if (I->isCommutative()) { in createExpression()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Vectorize/
H A DVPlanSLP.cpp166 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()
1452 unsigned FromIdx = isCommutative(I2) ? 0 : OpIdx1; in getScoreAtLevelRec()
1453 unsigned ToIdx = isCommutative(I2) in getScoreAtLevelRec()
1918 bool IsInverseOperation = !isCommutative(cast<Instruction>(VL[Lane])); in appendOperandsOfVL()
4935 if (CI->isCommutative()) in generateKeySubkey()
5092 bool IsCommutative = isCommutative(S.MainOp) || isCommutative(S.AltOp); in buildTree_rec()
5544 if (cast<CmpInst>(VL0)->isCommutative()) { in buildTree_rec()
5593 if (isa<BinaryOperator>(VL0) && VL0->isCommutative()) { in buildTree_rec()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineNegator.cpp123 if (I->isCommutative() && InstCombiner::getComplexity(I->getOperand(0)) < in getSortedOperandsOfBinOp()
H A DInstructionCombining.cpp417 if (I.isCommutative() && getComplexity(I.getOperand(0)) < in SimplifyAssociativeOrCommutative()
479 if (I.isAssociative() && I.isCommutative()) { in SimplifyAssociativeOrCommutative()
593 if (Instruction::isCommutative(ROp)) in rightDistributesOverLeft()
650 bool InnerCommutative = Instruction::isCommutative(InnerOpcode); in tryFactorization()
1740 if (Inst.isCommutative() && in foldVectorBinop()
1848 if (Inst.isAssociative() && Inst.isCommutative()) { in foldVectorBinop()
H A DInstCombineShifts.cpp1052 if (Op0BO->isCommutative() && Y->hasOneUse() && in visitShl()
/openbsd-src/gnu/llvm/llvm/lib/Target/Hexagon/
H A DHexagonVectorLoopCarriedReuse.cpp438 if ((I && I->isCommutative()) || (C1 && isCallInstCommutative(C1))) { in findValueToReuse()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DInterleavedLoadCombinePass.cpp907 if ((!C) && BO.isCommutative()) { in computePolynomialBinOp()
/openbsd-src/gnu/llvm/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.cpp257 (Instruction::isCommutative(OpcodeToExpand) && L == B1 && R == B0)) { in expandBinOp()
345 if (!Instruction::isCommutative(Opcode)) in simplifyAssociativeBinOp()
454 if (Simplified->isCommutative() && in threadBinOpOverSelect()
623 if (Instruction::isCommutative(Opcode)) in foldOrCommuteConstant()

12