OSDN Git Service

make memset inference significantly more powerful: it can now handle
authorChris Lattner <sabre@nondot.org>
Fri, 28 Mar 2008 06:45:13 +0000 (06:45 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 28 Mar 2008 06:45:13 +0000 (06:45 +0000)
commit7f0965e7daa17f0c5987fb923cab94ed7f6f4d78
tree872b855f87c656e03f7fc7be4688dd93f1b0459b
parent02bee85a70c32d51542e1da1d0569903f943dd96
make memset inference significantly more powerful: it can now handle
memsets that initialize "structs of arrays" and other store sequences
that are not sequential.  This is still only enabled if you pass
-form-memset-from-stores.  The flag is not heavily tested and I haven't
analyzed the perf regressions when -form-memset-from-stores is passed
either, but this causes no make check regressions.

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