summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/LowerSwitch.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
commit0b89dff37d9947cd6f8bcc1afa23e451130aac99 (patch)
tree0134321805d662a52c1ce14c55b437aef1aeb787 /llvm/lib/Transforms/Utils/LowerSwitch.cpp
parent3b5791f9829cac76a49f68cf6cd8cd0f2f89788b (diff)
downloadbcm5719-llvm-0b89dff37d9947cd6f8bcc1afa23e451130aac99.tar.gz
bcm5719-llvm-0b89dff37d9947cd6f8bcc1afa23e451130aac99.zip
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. llvm-svn: 77032
Diffstat (limited to 'llvm/lib/Transforms/Utils/LowerSwitch.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud