Displaying 3 results from an estimated 3 matches for "testloopinfo".
Did you mean:
getloopinfo
2010 Aug 14
0
[LLVMdev] Questions about trip count
...ude "llvm/Analysis/ScalarEvolution.h"
using namespace llvm;
STATISTIC(HelloCounter, "Counts number of functions greeted");
namespace {
struct Hello: public FunctionPass {
static char ID; // Pass identification, replacement for typeid
Hello() : FunctionPass(&ID) {}
class testLoopInfo {
void getLoopInfo(const Function& F) const {
const LoopInfo *LI = &getAnalysis<LoopInfo> ();
ScalarEvolution *SE = &getAnalysis<ScalarEvolution> ();
Function::const_iterator BB = F.begin(), E = F.end();
for (; BB != E; ++BB) {
const Loop* L = LI->getLoopFor(&*BB);...
2010 Aug 12
2
[LLVMdev] Questions about trip count
On 08/12/2010 09:41 PM, Douglas do Couto Teixeira wrote:
> Dear guys,
>
> I am having problems to obtain good information from the LoopInfo.
> I am always getting a trip count of 0, even though I am clearly passing
> a loop with a constant bound. I am using this pass below:
Hi,
I would propose to first check if the trip count is calculated
correctly. I would do this with opt
2010 Aug 12
0
[LLVMdev] Questions about trip count
Dear guys,
I am having problems to obtain good information from the LoopInfo. I am
always getting a trip count of 0, even though I am clearly passing a loop
with a constant bound. I am using this pass below:
void testLoopInfo(const Function& F) const {
const LoopInfo *LI = &getAnalysis<LoopInfo>();
Function::const_iterator BB = F.begin(), E = F.end();
for (; BB != E; ++BB) {
const Loop* l = LI->getLoopFor(&*BB);
if (l != NULL) {
l->dump();
errs(...