[llvm-commits] [llvm] r43270 - in /llvm/trunk: lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp test/CodeGen/PowerPC/2007-10-23-UnalignedMemcpy.ll

Bill Wendling isanbard at gmail.com
Tue Oct 23 17:11:30 PDT 2007


On 10/23/07, Chris Lattner <clattner at apple.com> wrote:
> > URL: http://llvm.org/viewvc/llvm-project?rev=43270&view=rev
> > Log:
> > If there's an unaligned memcpy to/from the stack, don't lower it.
> > Just call the
> > memcpy library function instead.
>
> Hey Bill,
>
> There is nothing specific about the stack here, please just make it
> depend on whether the alignment of the src/dest pointers are sufficient.
>
Are you certain? When Evan and I looked at it, it seemed like it was
mostly having problems with the stack pointer and alignment. If it
wasn't aligned for PPC, then it would barf.

I'm that's not the case, then this would be the patch, right?

          if (Size % Align != 0)
            break;

-bw



More information about the llvm-commits mailing list