llvm.org GIT mirror llvm / a9348dc
Check iteration count. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55680 91177308-0d34-0410-b5e6-96231b3b80d8 Devang Patel 11 years ago
2 changed file(s) with 5 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
19071907 /// change the type of IV, if possible.
19081908 void LoopStrengthReduce::OptimizeIVType(Loop *L) {
19091909
1910 SCEVHandle IterationCount = SE->getIterationCount(L);
1911 if (isa(IterationCount))
1912 return;
1913
19101914 BasicBlock *LPH = L->getLoopPreheader();
19111915 BasicBlock *LatchBB = L->getLoopLatch();
19121916 SmallVector PHIs;
4848 store i16* %theDCTBufferIter.0.lcssa, i16** %tmp6, align 4
4949 %tmp37 = add i16 %component.09, 1 ; [#uses=2]
5050 %phitmp15 = sext i16 %tmp37 to i32 ; [#uses=1]
51 %tmp46 = icmp slt i32 %phitmp15, %tmp4412 ; [#uses=1]
51 %tmp46 = icmp slt i32 %phitmp15, 42 ; [#uses=1]
5252 br i1 %tmp46, label %bb, label %bb49
5353
5454 bb49: ; preds = %bb28, %entry