summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCContext.cpp
diff options
context:
space:
mode:
authorMichael Zolotukhin <mzolotukhin@apple.com>2015-11-14 05:51:41 +0000
committerMichael Zolotukhin <mzolotukhin@apple.com>2015-11-14 05:51:41 +0000
commit8ef44f93ca72effd5b49dc4ea9bd5f7830d72093 (patch)
tree2aff8c6178c95c9a68f150f39a3c45770348b365 /llvm/lib/MC/MCContext.cpp
parentb56d01033e524cbf3e6281282cf21950499c3d7f (diff)
downloadbcm5719-llvm-8ef44f93ca72effd5b49dc4ea9bd5f7830d72093.tar.gz
bcm5719-llvm-8ef44f93ca72effd5b49dc4ea9bd5f7830d72093.zip
Don't recompute LCSSA after loop-unrolling when possible.
Summary: Currently we always recompute LCSSA for outer loops after unrolling an inner loop. That leads to compile time problem when we have big loop nests, and we can solve it by avoiding unnecessary work. For instance, if w eonly do partial unrolling, we don't break LCSSA, so we don't need to rebuild it. Also, if all exits from the inner loop are inside the enclosing loop, then complete unrolling won't break LCSSA either. I replaced unconditional LCSSA recomputation with conditional recomputation + unconditional assert and added several tests, which were failing when I experimented with it. Soon I plan to follow up with a similar patch for recalculation of dominators tree. Reviewers: hfinkel, dexonsmith, bogner, joker.eph, chandlerc Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D14526 llvm-svn: 253126
Diffstat (limited to 'llvm/lib/MC/MCContext.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud