aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineModuleInfo.cpp
diff options
context:
space:
mode:
authorJingyue Wu <jingyue@google.com>2015-04-17 00:25:10 +0000
committerJingyue Wu <jingyue@google.com>2015-04-17 00:25:10 +0000
commit8579b813297a50364a50b7d7199106f6fc948e07 (patch)
treef274381d071c5dde0d07d060001d6c84cb8b9590 /llvm/lib/CodeGen/MachineModuleInfo.cpp
parentab8f7d58760cfe52a530c578f68d0cc8a2d91e1b (diff)
downloadllvm-8579b813297a50364a50b7d7199106f6fc948e07.zip
llvm-8579b813297a50364a50b7d7199106f6fc948e07.tar.gz
llvm-8579b813297a50364a50b7d7199106f6fc948e07.tar.bz2
[NaryReassociate] run NaryReassociate iteratively
Summary: An alternative is to use a worklist approach. However, that approach would break the traversing order so that we couldn't lookup SeenExprs efficiently. I don't see a clear winner here, so I picked the easier approach. Along with two minor improvements: 1. preserves ScalarEvolution by forgetting instructions replaced 2. removes dead code locally avoiding the need of running DCE afterwards Test Plan: add to slsr-add.ll a test that requires multiple iterations Reviewers: broune, dberlin, atrick, meheff Reviewed By: atrick Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D9058 llvm-svn: 235151
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
0 files changed, 0 insertions, 0 deletions