[Alignment] fix dubious min function alignment
commitf071ed29ef6b8ed3a68bdb7ff7804a7e2ef7c884
authorGuillaume Chatelet <gchatelet@google.com>
Fri, 6 Sep 2019 13:54:09 +0000 (6 13:54 +0000)
committerGuillaume Chatelet <gchatelet@google.com>
Fri, 6 Sep 2019 13:54:09 +0000 (6 13:54 +0000)
tree8c8c50a19a12dd18f73b092e56b024b4b08eb6e0
parentb2ce6ced2faa1dce1a3e85734b377b142280de2b
[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
lib/Target/SystemZ/SystemZISelLowering.cpp