OSDN Git Service

Teach instcombine to increase the alignment of memset/memcpy/memmove when
authorChris Lattner <sabre@nondot.org>
Mon, 6 Mar 2006 20:18:44 +0000 (20:18 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 6 Mar 2006 20:18:44 +0000 (20:18 +0000)
commit95a959dc1a6cb8b194bd8b4fad9ef0081ce8b364
treed41f579b78bfb99c2ae3095bd524e80a034262a8
parent6af7ef8da874635f5f060ad19afb19811452b447
Teach instcombine to increase the alignment of memset/memcpy/memmove when
the pointer is known to come from either a global variable, alloca or
malloc.  This allows us to compile this:

  P = malloc(28);
  memset(P, 0, 28);

into explicit stores on PPC instead of a memset call.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26577 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp