Patent ID: 6675376
Filing Date: 2004-01-06
Classification: G06F

Abstract:
A method for optimizing a number of instructions in a program file, comprising:finding a first instruction and a second instruction in the program file that each perform a single operation and the second instruction depends on a result of the first instruction; and forming a fused instruction that includes determining a fused opcode that represents both a first operation of the first instruction and a second operation of the second instruction, wherein the fused opcode swaps the order of applying a temporary operand, that stores the result of the first instruction, to the at least one source operand of the second instruction that is not the destination operand of the first instruction, if the second instruction is non-commutative and swaps the order of applying a first one of the at least one source operand of the second instruction to a second one of the at least one source operand of the second instruction.