[llvm] r275866 - CodeGenPrep: use correct function to determine Global's alignment.
Hans Wennborg via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 18 13:30:07 PDT 2016
On Mon, Jul 18, 2016 at 12:20 PM, Tim Northover <t.p.northover at gmail.com> wrote:
> On 18 July 2016 at 11:28, Tim Northover via llvm-commits
> <llvm-commits at lists.llvm.org> wrote:
>> CodeGenPrep: use correct function to determine Global's alignment.
>>
>> Elsewhere (particularly computeKnownBits) we assume that a global will be
>> aligned to the value returned by Value::getPointerAlignment. This is used to
>> boost the alignment on memcpy/memset, so any target-specific request can only
>> increase that value.
>>
>> Modified:
>> llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp
>> llvm/trunk/test/CodeGen/ARM/memfunc.ll
>
> This had probably just as well go into the release branch. A simple
> fix early on. Shall I cherry-pick it?
Yes, go ahead.
Thanks,
Hans
More information about the llvm-commits
mailing list