diff options
author | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2018-04-24 14:03:21 +0000 |
---|---|---|
committer | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2018-04-24 14:03:21 +0000 |
commit | a6bf70d02a341791719b6dbc81c3a654db107c52 (patch) | |
tree | f5d07ff24d880ee44f10d3b9c064b18dd6ba9254 /lib/Target/SystemZ | |
parent | d0c01140be8d3f918b6ff4f5a4d5dbd0fb51c5b2 (diff) |
[SystemZ] Use preferred 16-byte function alignment
While not necessary for correctness, it is preferable for
performance reasons on all architectures we currently support
to align functions to 16-byte boundaries by default.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@330718 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ')
-rw-r--r-- | lib/Target/SystemZ/SystemZISelLowering.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/SystemZ/SystemZISelLowering.cpp b/lib/Target/SystemZ/SystemZISelLowering.cpp index 5de324d1d46..a408a0a2b94 100644 --- a/lib/Target/SystemZ/SystemZISelLowering.cpp +++ b/lib/Target/SystemZ/SystemZISelLowering.cpp @@ -122,6 +122,8 @@ SystemZTargetLowering::SystemZTargetLowering(const TargetMachine &TM, // Instructions are strings of 2-byte aligned 2-byte values. setMinFunctionAlignment(2); + // For performance reasons we prefer 16-byte alignment. + setPrefFunctionAlignment(4); // Handle operations that are handled in a similar way for all types. for (unsigned I = MVT::FIRST_INTEGER_VALUETYPE; |