<br><div class="gmail_quote">Hi,<br><br>I am trying to run a profiling pass for each Machine Basic Block so that I can get execution count for them, but I am getting assertion error when I run it through clang. I have used MachineProfileInfo and Profile estimator as dependent passes over my pass. I am sending you the code for my pass. the error says:<br>


void llvm::PMTopLevelManager::schedulePass(llvm::Pass*): Assertion `PI && "Expected required passes to be initialized"' failed.<br><br>I am attaching the code. Can you help me out? also can you suggest better ways for getting execution count of loops corresponding to each machine basic block?<br>


<br clear="all">Thanks and Regards,<br>Ranajoy Pal<br>
</div><br>