Han Li
2012-May-21 20:20 UTC
[LLVMdev] No getSmallConstantTripCount function in current LLVM version
Hi, I cannot find the getSmallConstantTripCount function in the current LLVM. Can anyone tell me whether there is still such a function to get the trip count in LLVM? Thank you very much. Best, Han
Andrew Trick
2012-May-22 04:42 UTC
[LLVMdev] No getSmallConstantTripCount function in current LLVM version
On May 21, 2012, at 1:20 PM, Han Li <lihan9088 at gmail.com> wrote:> Hi, > > I cannot find the getSmallConstantTripCount function in the current LLVM. Can anyone tell me whether there is still such a function to get the trip count in LLVM?Hi Han Li, AU.addRequired<ScalarEvolution>(); AU.addPreserved<ScalarEvolution>(); ScalarEvolution *SE = &getAnalysis<ScalarEvolution>(); SE->getSmallConstantTripCount(L, ExitingBlock); If you only want to handle single exit loops then: ExitingBlock = L->getExitingBlock() -Andy
Maybe Matching Threads
- [LLVMdev] getSmallConstantTripCount problem
- [LLVMdev] Loop Dependence Analysis(getDistance())
- [LLVMdev] BackedgeTakenCount calculation for fortran loops and DragonEgg gfortran-4.6
- [LLVMdev] BackedgeTakenCount calculation for fortran loops and DragonEgg gfortran-4.6
- [LLVMdev] Function Pass Manager