summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/BackendUtil.cpp
diff options
context:
space:
mode:
authorKang Zhang <shkzhang@cn.ibm.com>2019-06-15 15:10:24 +0000
committerKang Zhang <shkzhang@cn.ibm.com>2019-06-15 15:10:24 +0000
commit2d51adcb571408a9556d2af95371c3c9174d1407 (patch)
tree51b4d99c8cbb8441b1c01bb5bb8089bf8c5eeec3 /clang/lib/CodeGen/BackendUtil.cpp
parent922759a63d7d8edbc47578b4718a38765093d24e (diff)
downloadbcm5719-llvm-2d51adcb571408a9556d2af95371c3c9174d1407.tar.gz
bcm5719-llvm-2d51adcb571408a9556d2af95371c3c9174d1407.zip
[PowerPC] Set the innermost hot loop to align 32 bytes
Summary: If the nested loop is an innermost loop, prefer to a 32-byte alignment, so that we can decrease cache misses and branch-prediction misses. Actual alignment of the loop will depend on the hotness check and other logic in alignBlocks. The old code will only align hot loop to 32 bytes when the LoopSize larger than 16 bytes and smaller than 32 bytes, this patch will align the innermost hot loop to 32 bytes not only for the hot loop whose size is 16~32 bytes. Reviewed By: steven.zhang, jsji Differential Revision: https://reviews.llvm.org/D61228 llvm-svn: 363495
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud