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

Handle forwarding local memsets to loads. For example, we optimize this:

short x(short *A) {
  memset(A, 1, sizeof(*A)*100);
  return A[42];
}

to 'return 257' instead of doing the load.  

llvm-svn: 90695
parent d15e11ad
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