[PATCH] [ARM] Align stack objects that may be memcpy'd

John Brawn john.brawn at arm.com
Fri Feb 27 09:40:33 PST 2015


In http://reviews.llvm.org/D7908#131187, @hfinkel wrote:

> Also worth noting, is that in getMemcpyLoadsAndStores in lib/CodeGen/SelectionDAG/SelectionDAG.cpp, there already is code that attempts to reset the alignment of a destination stack object when possible. Perhaps this should just be extended to do the same for the source.


The goal is to align not just on direct calls to memcpy, but also calls to functions that then may call memcpy. It looks like doing it as a CodeGenPrep pass can do both - we first align arguments to a call, then check if the call is actually a memcpy and up its alignment if possible.


REPOSITORY
  rL LLVM

http://reviews.llvm.org/D7908

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list