Patent ID: 7313790
Filing Date: 2007-12-25
Classification: G06F

Abstract:
1. A method of preserving exceptions in code reordering, the method comprising: receiving a plurality of instructions including a first instruction; determining if the first instruction is an excepting instruction; determining if the first instruction is to be moved upward across a check instruction; determining a second instruction in the plurality of instructions that computes a previous value of a target register associated with the first instruction when the first instruction is not an excepting instruction and the first instruction is to be moved upward across a check instruction; determining if a source operand associated with the second instruction is available at the check instruction; inserting a third instruction into the plurality of instructions to save the value of the target register if the source operand associated with the second instruction is not available at the check instruction; and inserting a fourth instruction into a recovery block to restore the value of the target register.