[llvm] r310071 - [ArgPromotion] Preserve alignment of byval argument in new alloca

Hans Wennborg via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 7 13:07:53 PDT 2017


On Fri, Aug 4, 2017 at 10:09 AM, Reid Kleckner via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
> Author: rnk
> Date: Fri Aug  4 10:09:11 2017
> New Revision: 310071
>
> URL: http://llvm.org/viewvc/llvm-project?rev=310071&view=rev
> Log:
> [ArgPromotion] Preserve alignment of byval argument in new alloca
>
> The frontend may have requested a higher alignment for any reason, and
> downstream optimizations may already have taken advantage of it.  We
> should keep the same alignment when moving the allocation from the
> parameter area to the local variable area.
>
> Fixes PR34038

Merged to 5.0 in r310292.


More information about the llvm-commits mailing list