Complier optimization method for eliminating redundant storage access operations
暂无分享,去创建一个
The invention discloses a complier optimization method for eliminating redundant storage access operations. The method is used in a system with inaccurate alias information and a Load/Store framework for access and storage, and is a lightweight-based data flow analysis method. The method comprises the steps of judging whether Load instructions are redundant or not at the code generation stage according to specific Store-Load instruction sequence characteristics, and deleting the redundant Load instructions according to characteristics of a predecessor instruction or converting the redundant Load instructions into copying instructions with smaller cost or bit extraction instructions. According to the complier optimization method for eliminating the redundant storage access operations, the redundant access and storage instructions can be eliminated, the access and storage time of a program is greatly reduced, the program performance is improved, meanwhile, more program optimization opportunities are revealed, and the program performance is improved.