diff --git a/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp b/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp index 5de324d1d46d..a408a0a2b94d 100644 --- a/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp +++ b/llvm/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;