[llvm-commits] [llvm] r119916 - in /llvm/trunk: include/llvm/Support/CallSite.h lib/Transforms/Scalar/MemCpyOptimizer.cpp test/Transforms/MemCpyOpt/memcpy.ll test/Transforms/MemCpyOpt/sret.ll

Duncan Sands baldrick at free.fr
Sun Nov 21 03:25:46 PST 2010


Hi Chris,

> Unfortunately, the requirements on byval's without explicit
> alignment are really weak and impossible to predict in the
> mid-level optimizer, so this doesn't kick in much with current
> frontends.  The fix is to change clang to set alignment on all
> byval arguments.

so a byval without an explicit alignment doesn't use the ABI alignment
for the type?

> +  // The length of the memcpy must be larger or equal to the size of the byval.
> +  // must be larger than the following one.

The second comment line has a problem.

Ciao,

Duncan.



More information about the llvm-commits mailing list