Home
last modified time | relevance | path

Searched refs:RedOp (Results 1 – 4 of 4) sorted by relevance

/openbsd/gnu/llvm/llvm/lib/CodeGen/
H A DExpandVectorPredication.cpp323 Value *RedOp = VPI.getOperand(VPI.getVectorParamPos()); in expandPredicationInReduction() local
330 RedOp = Builder.CreateSelect(Mask, RedOp, NeutralVector); in expandPredicationInReduction()
340 Reduction = Builder.CreateAddReduce(RedOp); in expandPredicationInReduction()
344 Reduction = Builder.CreateMulReduce(RedOp); in expandPredicationInReduction()
348 Reduction = Builder.CreateAndReduce(RedOp); in expandPredicationInReduction()
352 Reduction = Builder.CreateOrReduce(RedOp); in expandPredicationInReduction()
356 Reduction = Builder.CreateXorReduce(RedOp); in expandPredicationInReduction()
380 Reduction = Builder.CreateFPMaxReduce(RedOp); in expandPredicationInReduction()
386 Reduction = Builder.CreateFPMinReduce(RedOp); in expandPredicationInReduction()
392 Reduction = Builder.CreateFAddReduce(Start, RedOp); in expandPredicationInReduction()
[all …]
/openbsd/gnu/llvm/llvm/lib/Analysis/
H A DIVDescriptors.cpp1165 unsigned RedOp = getOpcode(Kind); in getReductionOpChain() local
1183 if (RedOp == Instruction::ICmp || RedOp == Instruction::FCmp) in getReductionOpChain()
1191 if (RedOp == Instruction::ICmp || RedOp == Instruction::FCmp) { in getReductionOpChain()
1203 if (RedOp == Instruction::ICmp || RedOp == Instruction::FCmp) { in getReductionOpChain()
1212 return Cur->getOpcode() == RedOp; in getReductionOpChain()
/openbsd/gnu/llvm/llvm/lib/Transforms/Vectorize/
H A DLoopVectorize.cpp6616 Instruction *RedOp = RetI->getOperand(1) == LastChain in getReductionPatternCost() local
6623 if (RedOp && RdxDesc.getOpcode() == Instruction::Add && in getReductionPatternCost()
6624 match(RedOp, in getReductionPatternCost()
6630 (Op0->getOpcode() == RedOp->getOpcode() || Op0 == Op1)) { in getReductionPatternCost()
6646 TTI.getCastInstrCost(RedOp->getOpcode(), VectorTy, MulType, in getReductionPatternCost()
6647 TTI::CastContextHint::None, CostKind, RedOp); in getReductionPatternCost()
6655 } else if (RedOp && match(RedOp, m_ZExtOrSExt(m_Value())) && in getReductionPatternCost()
6656 !TheLoop->isLoopInvariant(RedOp)) { in getReductionPatternCost()
6658 bool IsUnsigned = isa<ZExtInst>(RedOp); in getReductionPatternCost()
6665 TTI.getCastInstrCost(RedOp->getOpcode(), VectorTy, ExtType, in getReductionPatternCost()
[all …]
H A DSLPVectorizer.cpp12801 Instruction *RedOp = InstVals[I + 1].first; in tryToReduce() local
12802 Builder.SetCurrentDebugLocation(RedOp->getDebugLoc()); in tryToReduce()
12817 RedOp); in tryToReduce()
12835 for (Instruction *RedOp : in tryToReduce()
12838 ExtraReductions.emplace_back(RedOp, RdxVal); in tryToReduce()