[llvm] r275866 - CodeGenPrep: use correct function to determine Global's alignment.
Tim Northover via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 18 12:20:50 PDT 2016
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?
Tim.
More information about the llvm-commits
mailing list