Hi, I want to do some rate analysis in standard dialect.
For instance, I want to extract the loop trip count and keep it in the standard dialect.
That can be represented as the execution frequency of blocks.
So I wonder if anyone has done this before and can share any idea to represent the execution frequency for blocks in standard dialect?
My idea is to encode the frequency of the block in the terminator, e.g. condbranches. For instance, a condbranch with N outputs can have an attribute of int[N] to indicate how many times the current block will go to each successor. The frequency of the block is the sum of all these values.
Please feel free to share your thoughts. Thanks!