diff options
author | Chris Lattner <sabre@nondot.org> | 2009-12-06 01:57:02 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-12-06 01:57:02 +0000 |
commit | faf815b9380baef522becff67da7b9c3b0f1638d (patch) | |
tree | 30b8c600ae871883fa41461197b728ec862a1afa /lib/CodeGen/MachineModuleInfo.cpp | |
parent | 90ec9680a9b0c76bbc739d7309e4611b478ebe91 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90695 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineModuleInfo.cpp')
0 files changed, 0 insertions, 0 deletions