Skip to content
Commit 82f2ef20 authored by Chris Lattner's avatar Chris Lattner
Browse files

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.

llvm-svn: 26577
parent 01aa752a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment