aboutsummaryrefslogtreecommitdiff
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
commitfef8bb24de86ff41d09a7787c6c52b058a853e39 (patch)
tree699e693217641d09edb5786b18769ea616324d6d /lib/Transforms/Utils/AddrModeMatcher.cpp
parentb140f4907ca7fdd9c58b8f9e3a4bb49134c1cd27 (diff)
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