HomePhabricator

[Alignment] fix dubious min function alignment

Authored by gchatelet on Fri, Sep 6, 6:54 AM.

Description

[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

llvm-svn: 371204

Details

Committed
gchateletFri, Sep 6, 6:54 AM
Differential Revision
D67271: [Alignment] fix dubious min function alignment
Parents
rG8455294f2ac1: Revert r370635, it caused PR43241.
Branches
Unknown
Tags
Unknown