Searched refs:TripCount (Results 1 - 6 of 6) sorted by relevance

/freebsd-10.0-release/contrib/llvm/include/llvm/Transforms/Utils/
H A DUnrollLoop.h25 bool UnrollLoop(Loop *L, unsigned Count, unsigned TripCount, bool AllowRuntime,
/freebsd-10.0-release/contrib/llvm/lib/Transforms/Scalar/
H A DLoopUnrollPass.cpp160 unsigned TripCount = 0; local
163 // via the loop latch on any iteration prior to TripCount. The loop may exit
167 TripCount = SE->getSmallConstantTripCount(L, LatchBlock);
174 if (UnrollRuntime && CurrentCount == 0 && TripCount == 0)
182 if (TripCount == 0)
184 Count = TripCount;
204 if (TripCount != 1 && Size > Threshold) {
207 if (!CurrentAllowPartial && !(UnrollRuntime && TripCount == 0)) {
212 if (TripCount) {
213 // Reduce unroll count to be modulo of TripCount fo
[all...]
/freebsd-10.0-release/contrib/llvm/lib/Transforms/Utils/
H A DLoopUnroll.cpp120 /// 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, argument
177 if (TripCount != 0)
178 DEBUG(dbgs() << " Trip Count = " << TripCount << "\n");
184 if (TripCount != 0 && Count > TripCount)
185 Count = TripCount;
[all...]
H A DLoopUnrollRuntime.cpp56 static void ConnectProlog(Loop *L, Value *TripCount, unsigned Count, argument
110 new ICmpInst(InsertPt, ICmpInst::ICMP_ULT, TripCount,
111 ConstantInt::get(TripCount->getType(), Count));
280 Value *TripCount = Expander.expandCodeFor(TripCountSC, TripCountSC->getType(), local
282 Type *CountTy = TripCount->getType();
284 BinaryOperator::CreateURem(TripCount,
370 ConnectProlog(L, TripCount, Count, LastLoopBB, PEnd, PH, NewPH, LVMap,
/freebsd-10.0-release/contrib/llvm/lib/Target/PowerPC/
H A DPPCCTRLoops.cpp620 CountValue *TripCount = getTripCount(L, OldInsts); local
621 if (TripCount == 0) {
626 if (TripCount->isImm()) {
627 DEBUG(dbgs() << "constant trip count: " << TripCount->getImm() << "\n");
631 if (!isInt<32>(TripCount->getImm()))
683 if (TripCount->isReg()) {
686 MF->getRegInfo().getRegClass(TripCount->getReg());
692 TII->get(CopyOp), CountReg).addReg(TripCount->getReg());
693 if (TripCount->isNeg()) {
701 assert(TripCount
[all...]
/freebsd-10.0-release/contrib/llvm/lib/Target/Hexagon/
H A DHexagonHardwareLoops.cpp1038 CountValue *TripCount = getLoopTripCount(L, OldInsts); local
1039 if (TripCount == 0)
1043 if (TripCount->isReg()) {
1046 MachineInstr *TCDef = MRI->getVRegDef(TripCount->getReg());
1080 if (TripCount->isReg()) {
1084 .addReg(TripCount->getReg(), 0, TripCount->getSubReg());
1090 assert(TripCount->isImm() && "Expecting immediate value for trip count");
1094 int64_t CountImm = TripCount->getImm();
1137 delete TripCount;
[all...]

Completed in 128 milliseconds