diff options
author | Chris Lattner <sabre@nondot.org> | 2004-10-06 16:36:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-10-06 16:36:46 +0000 |
commit | b5c16705fdf778f5f1dfbfdf67218932f1d8ca7d (patch) | |
tree | 9d64f5fe226cdaffe56a443e3a80a058f76bc719 /lib/Analysis/DataStructure/Local.cpp | |
parent | df00115aa4ee3fd400cc32889a353a461a471daa (diff) |
Change Type::isAbstract to have better comments, a more correct name
(PromoteAbstractToConcrete), and to use a set to avoid recomputation.
In particular, this set eliminates the potentially exponential cases
from this little recursive algorithm.
On a particularly nasty testcase, llvm-dis on the .bc file went from 34
minutes (which is when I killed it, it still hadn't finished) to 0.57s.
Remember kids, exponential algorithms are bad.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16772 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/Local.cpp')
0 files changed, 0 insertions, 0 deletions