Method and system for optimizing address calculations
AssigneeHuawei Technologies Co., Ltd.
InventorsWeiwei Li, Guansong Zhang
Life of this patent
Estimating the term…
Loading patent…
AssigneeHuawei Technologies Co., Ltd.
InventorsWeiwei Li, Guansong Zhang
Estimating the term…
The disclosed systems, structures, and methods are directed to optimizing address calculations in a computer. This is achieved in a compiler that identifies an address calculation in code that is being compiled and transforms the code by splitting the address calculation into a first portion in which an offset is determined and a second portion, in which the offset is combined with a base pointer to generate an address. The address and the base pointer have a first bit-length, and the offset has a second bit-length shorter than the first bit-length. The offset is determined using an operation performed at the second bit-length. In some implementations the first bit-length is 64 bits and the second bit-length is 32 bits.
An apparatus comprising:
A method of optimizing address calculations in a compiler being executed on a computer in which the compiler comprises an address calculation optimizer incorporating a fast-address check module and an address calculation separation module, the method comprising:
A non-transitory computer-readable medium comprising instructions that, when executed by a processor, cause the processor to:
Dependencies are inferred from the claim text.