1. A method, for use in a processor, the method comprising: estimating a number of instructions-per-cycle that will be executed by the processor based on static compile-time information extracted during compilation; and controlling a resource of the processor based on the estimated number of instructions-per-cycle.