Patent ID: 8214817

Claim:
A computer implemented method for generating optimization insensitive behavior profiles, the computer implemented method comprising: assigning a source identifier to each instruction in an original control flow graph to form a set of source identifiers, wherein the original control flow graph represents a program code prior to an adaptive optimization, and wherein the source identifier identifies a basic block associated with the each instruction; assigning a source identifier in the set of source identifiers to each instruction in a set of instructions in an optimized control flow graph, wherein the optimized control flow graph represents the program code after adaptive optimizing the program code; mapping the instructions in the optimized control flow graph to the original control flow graph using the set of source identifiers to form a mapping transformation; moving behavior profile data associated with the optimized control flow graph to basic blocks in the original control flow graph using the mapping transformation to form an optimization insensitive behavior profile; and comparing the optimization insensitive behavior profile to a second optimization insensitive behavior profile generated during a previous adaptive optimization cycle, wherein the optimization insensitive behavior profile is used to compare a behavior of the program code across multiple adaptive optimization cycles.