Compilation optimization method for conditional transfer prediction direction transformation
A technology of prediction direction and optimization method, applied in the direction of code compilation, program code conversion, program control design, etc., can solve problems such as reducing program performance and affecting compiler instruction scheduling, so as to avoid program modification, reduce performance loss, and improve accuracy. rate effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0022] Embodiment: A compiling optimization method for conditional branch prediction direction transformation, based on the following presets: by default, the prediction method of the branch predictor is that the backward branch instruction (the offset is a negative value) is always predicted as a jump , forward branch instructions are always predicted not to jump;
[0023] After the program is compiled and run, when the user finds that the actual running time of the program is quite different from the expected execution time, perform performance analysis through gdb debugging or performance counter information statistics, and when it is found that frequent branch prediction failures have brought serious performance When losing, perform the following steps:
[0024] S1. The compiler recompiles the source program, and adds a compilation optimization option for branch prediction direction transformation during compilation;
[0025] S2. The compiler performs control flow analysi...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com