search for: staticprofilepass

Displaying 3 results from an estimated 3 matches for "staticprofilepass".

2011 Jan 21
1
[LLVMdev] About static-profile in llvm-2.8
...f-llvm.patch. It seems it was written by Andrei Rimsa. So I downloaded and integrate these files into the llvm-2.8 building. After the building, I tried "opt -static-profile bitcnt_1.bc", and an segment fault error occured. I debugged it step by step, and found the initial reason was: in StaticProfilePass.cpp: line 307 (funciton: PropagateCallFrequency), since the root of type CallGraphNode * has no valid function, the node->getFunction() returned a NULL pointer, thus the F->getName() in line 307 caused a code down. I confirmed that there was a main function in bitcnt_1.c (from MiBench) I ne...
2011 May 30
1
[LLVMdev] about writing a functionpass requiring a modulepass
...achableBlockElim (inherited from FunctionPass) requires myPass, by revising the related function as follows: *UnreachableBlockElim::getAnalysisUsage(AnalysisUsage &AU) const { * * AU.addPreserved<DominatorTree>();* * AU.addPreserved<ProfileInfo>();* * AU.addRequired<StaticProfilePass>();* * * * }* Then, i built it, it is OK. I went on to run it. It failed with a segment error. By debugging, it is found that in the following code from *PMTopLevelManager::schedulePass(Pass *P)*, *const PassInfo *PI = PassRegistry::getPassRegistry()->getPassInfo(*I);* * A...
2011 May 30
0
[LLVMdev] (no subject)
...achableBlockElim (inherited from FunctionPass) requires myPass, by revising the related function as follows: *UnreachableBlockElim::getAnalysisUsage(AnalysisUsage &AU) const { * * AU.addPreserved<DominatorTree>();* * AU.addPreserved<ProfileInfo>();* * AU.addRequired<StaticProfilePass>();* * * * }* Then, i built it, it is OK. I went on to run it. It failed with a segment error. By debugging, it is found that in the following code, *const PassInfo *PI = PassRegistry::getPassRegistry()->getPassInfo(*I);* * AnalysisPass = PI->createPass();* The return...