mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-19 15:13:49 -04:00
[Alignment] fix dubious min function alignment
Summary: This was discovered while introducing the llvm::Align type. The original setMinFunctionAlignment used to take alignment as log2, looking at the comment it seems like instructions are to be 2-bytes aligned and not 4-bytes aligned. Reviewers: uweigand Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D67271 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371204 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -120,7 +120,7 @@ SystemZTargetLowering::SystemZTargetLowering(const TargetMachine &TM,
|
||||
setBooleanVectorContents(ZeroOrNegativeOneBooleanContent);
|
||||
|
||||
// Instructions are strings of 2-byte aligned 2-byte values.
|
||||
setMinFunctionAlignment(llvm::Align(4));
|
||||
setMinFunctionAlignment(llvm::Align(2));
|
||||
// For performance reasons we prefer 16-byte alignment.
|
||||
setPrefFunctionLogAlignment(4);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user