A compiler-directed speculative approach to resolve performance-degrading long
latency events in an application is described. One or more performance-degrading
instructions are identified from multiple instructions to be executed in a program.
A set of instructions prefetching the performance-degrading instruction is defined
within the program. Finally, at least one speculative bit of each instruction of
the identified set of instructions is marked to indicate a predetermined execution
of the instruction.