When calculating 'nocapture' argument attributes, allow
authorDuncan Sands <baldrick@free.fr>
Fri, 2 Jan 2009 11:54:37 +0000 (11:54 +0000)
committerDuncan Sands <baldrick@free.fr>
Fri, 2 Jan 2009 11:54:37 +0000 (11:54 +0000)
commit338cd6ba6e36c291185541bb8e391427f57a32b1
treee6bd73b479b2e4823f0becbbf83856819841202d
parentb2f2279056ab9e2e80f94c20d79affc007a4de62
When calculating 'nocapture' argument attributes, allow
the argument to be stored to an alloca by tracking uses
of the alloca.  This occurs 4 times (out of 7121, 0.05%)
in MultiSource/Applications, so may not be worth it.  On
the other hand, it is easy to do and fairly cheap.  The
functions it helps are: W_addcom and W_addlit in spiff;
process_args (argv) in d (make_dparser); ercPixConcealIMB
in JM/ldecod.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61570 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/FunctionAttrs.cpp
test/Transforms/FunctionAttrs/2009-01-02-LocalStores.ll [new file with mode: 0644]