forked from OSchip/llvm-project
[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. llvm-svn: 330718
This commit is contained in:
parent
b3510c4254
commit
497c70fff1
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue