aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/FileCheck/FileCheck.cpp
diff options
context:
space:
mode:
authorKyungwoo Lee <kyulee.llvm@gmail.com>2021-02-01 22:32:32 -0500
committerPuyan Lotfi <plotfi@fb.com>2021-02-02 14:57:26 -0800
commit4f58b1bd29747ff491148ef8e27bf310b7f07d97 (patch)
treee448db142723b411e8f0d5d6c1d8c31b0da9d03b /llvm/utils/FileCheck/FileCheck.cpp
parent0dcf3324cfb4429e85b54e857f9bb86f423ffc5e (diff)
downloadllvm-4f58b1bd29747ff491148ef8e27bf310b7f07d97.zip
llvm-4f58b1bd29747ff491148ef8e27bf310b7f07d97.tar.gz
llvm-4f58b1bd29747ff491148ef8e27bf310b7f07d97.tar.bz2
[AArch64] Homogeneous Prolog and Epilog Size Optimization
Second land attempt. MachineVerifier DefRegState expensive check errors fixed. Prologs and epilogs handle callee-save registers and tend to be irregular with different immediate offsets that are not often handled by the MachineOutliner. Commit D18619/a5335647d5e8 (combining stack operations) stretched irregularity further. This patch tries to emit homogeneous stores and loads with the same offset for prologs and epilogs respectively. We have observed that this canonicalizes (homogenizes) prologs and epilogs significantly and results in a greatly increased chance of outlining, resulting in a code size reduction. Despite the above results, there are still size wins to be had that the MachineOutliner does not provide due to the special handling X30/LR. To handle the LR case, his patch custom-outlines prologs and epilogs in place. It does this by doing the following: * Injects HOM_Prolog and HOM_Epilog pseudo instructions during a Prolog and Epilog Injection Pass. * Lowers and optimizes said pseudos in a AArchLowerHomogneousPrologEpilog Pass. * Outlined helpers are created on demand. Identical helpers are merged by the linker. * An opt-in flag is introduced to enable this feature. Another threshold flag is also introduced to control the aggressiveness of outlining for application's need. This reduced an average of 4% of code size on LLVM-TestSuite/CTMark targeting arm64/-Oz. Differential Revision: https://reviews.llvm.org/D76570
Diffstat (limited to 'llvm/utils/FileCheck/FileCheck.cpp')
0 files changed, 0 insertions, 0 deletions