Patent ID: 9027007
Filing Date: 2015-05-05
Classification: G06F

Abstract:
1. A method comprising: determining, by a processor, a budget time for execution of a first optimization pass of a plurality of optimization passes for optimizing code for a software program during an optimization phase of compilation of the code; determining, by the processor, a first actual time for execution of the first optimization pass; determining, by the processor, an allocated time for execution of a second optimization pass of the plurality of optimization passes based at least in part on whether the first actual time for execution exceeded the budgeted time for execution of the first optimization pass, wherein the second optimization pass defines a first number of instructions; executing, by the processor, a second number of the instructions of the second optimization pass on the code to produce optimized code from the code for the software program, wherein the second number is less than the first number; in response to determining that an actual time for execution of the second optimization pass has exceeded the allocated time for execution, preventing, by the processor, execution of subsequent instructions of the second optimization pass; and after preventing execution of the subsequent instructions, generating object code for the software program from the optimized code.