HomeSort by relevance Sort by last modified time
    Searched refs:TripCount (Results 1 - 6 of 6) sorted by null

  /external/llvm/include/llvm/Transforms/Utils/
UnrollLoop.h 25 bool UnrollLoop(Loop *L, unsigned Count, unsigned TripCount, bool AllowRuntime,
  /external/llvm/lib/Transforms/Scalar/
LoopUnrollPass.cpp 152 unsigned TripCount = 0;
155 // via the loop latch on any iteration prior to TripCount. The loop may exit
159 TripCount = SE->getSmallConstantTripCount(L, LatchBlock);
166 if (UnrollRuntime && CurrentCount == 0 && TripCount == 0)
174 if (TripCount == 0)
176 Count = TripCount;
190 if (TripCount != 1 && Size > Threshold) {
193 if (!CurrentAllowPartial && !(UnrollRuntime && TripCount == 0)) {
198 if (TripCount) {
199 // Reduce unroll count to be modulo of TripCount for partial unrollin
    [all...]
  /external/llvm/lib/Transforms/Utils/
LoopUnroll.cpp 120 /// TripCount is generally defined as the number of times the loop header
122 /// TripCount is the iteration on which control exits LatchBlock if no early
125 /// test. In other words, control may exit the loop prior to TripCount
127 /// LatchBlock's terminator prior to TripCount iterations.
139 bool llvm::UnrollLoop(Loop *L, unsigned Count, unsigned TripCount,
177 if (TripCount != 0)
178 DEBUG(dbgs() << " Trip Count = " << TripCount << "\n");
182 // Effectively "DCE" unrolled iterations that are beyond the tripcount
184 if (TripCount != 0 && Count > TripCount)
    [all...]
LoopUnrollRuntime.cpp 56 static void ConnectProlog(Loop *L, Value *TripCount, unsigned Count,
110 new ICmpInst(InsertPt, ICmpInst::ICMP_ULT, TripCount,
111 ConstantInt::get(TripCount->getType(), Count));
214 /// extraiters = tripcount % loopfactor
222 /// if tripcount < loopfactor jump End
280 Value *TripCount = Expander.expandCodeFor(TripCountSC, TripCountSC->getType(),
282 Type *CountTy = TripCount->getType();
284 BinaryOperator::CreateURem(TripCount,
370 ConnectProlog(L, TripCount, Count, LastLoopBB, PEnd, PH, NewPH, LVMap,
  /external/llvm/lib/Target/PowerPC/
PPCCTRLoops.cpp 580 CountValue *TripCount = getTripCount(L, OldInsts);
581 if (TripCount == 0) {
633 if (TripCount->isReg()) {
636 MF->getRegInfo().getRegClass(TripCount->getReg());
642 TII->get(CopyOp), CountReg).addReg(TripCount->getReg());
643 if (TripCount->isNeg()) {
651 assert(TripCount->isImm() && "Expecting immedate vaule for trip count");
654 int64_t CountImm = TripCount->getImm();
655 assert(!TripCount->isNeg() && "Constant trip count must be positive");
677 TripCount->isImm() ? RegState::Kill : 0)
    [all...]
  /external/llvm/lib/Target/Hexagon/
HexagonHardwareLoops.cpp 443 CountValue *TripCount = getTripCount(L);
444 if (TripCount == 0) {
482 if (TripCount->isReg()) {
486 MF->getRegInfo().getRegClass(TripCount->getReg());
489 TII->get(TargetOpcode::COPY), CountReg).addReg(TripCount->getReg());
490 if (TripCount->isNeg()) {
501 assert(TripCount->isImm() && "Expecting immedate vaule for trip count");
503 int64_t CountImm = TripCount->getImm();
539 delete TripCount;

Completed in 287 milliseconds