diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2012-12-17 14:28:00 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2012-12-17 14:28:00 +0000 |
commit | 179481419851ca4bd3643dc89d3d83056246c4a8 (patch) | |
tree | ad1ce1a000d8c57291acd4b30ee675e703d23308 /lib/VMCore/Core.cpp | |
parent | a839ffc323396326ebdcf8d065c60be0bf05420d (diff) | |
download | external_llvm-179481419851ca4bd3643dc89d3d83056246c4a8.zip external_llvm-179481419851ca4bd3643dc89d3d83056246c4a8.tar.gz external_llvm-179481419851ca4bd3643dc89d3d83056246c4a8.tar.bz2 |
Optimize tree walking in markAliveBlocks.
Check whether a BB is known as reachable before adding it to the worklist.
This way BB's with multiple predecessors are added to the list no more than
once.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170335 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Core.cpp')
0 files changed, 0 insertions, 0 deletions