aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Utils/AddrModeMatcher.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-07-25 01:13:03 +0000
committerDan Gohman <gohman@apple.com>2009-07-25 01:13:03 +0000
commit2aa3f04d55486e695f617722243220befe84223c (patch)
tree699e693217641d09edb5786b18769ea616324d6d /lib/Transforms/Utils/AddrModeMatcher.cpp
parentd3e6be820c36eefc36c58ccd0247639bcc4508c5 (diff)
downloadexternal_llvm-2aa3f04d55486e695f617722243220befe84223c.zip
external_llvm-2aa3f04d55486e695f617722243220befe84223c.tar.gz
external_llvm-2aa3f04d55486e695f617722243220befe84223c.tar.bz2
Instead of eagerly creating new SCEVs to replace all SCEVs that are
affected after a PHI node has been analyzed, just remove affected SCEVs from the Scalars map, so that they'll be (lazily) recreated as needed. This avoids creating SCEV objects that aren't actually needed. Also, rewrite the associated def-use walking code to be non-recursive and to continue traversing past Instructions that don't have an entry in the Scalars map. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77032 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/AddrModeMatcher.cpp')
0 files changed, 0 insertions, 0 deletions