summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ProfileInfoLoader.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-10-06 16:36:46 +0000
committerChris Lattner <sabre@nondot.org>2004-10-06 16:36:46 +0000
commit43e03c9cdf7516006cd6afe821ca103cb54f1df8 (patch)
tree1151a1e172b67ca81fdc8e58198f738dd788bfa8 /llvm/lib/Analysis/ProfileInfoLoader.cpp
parentf29560783a128d81b39f15ab34949977b509cd2a (diff)
downloadbcm5719-llvm-43e03c9cdf7516006cd6afe821ca103cb54f1df8.tar.gz
bcm5719-llvm-43e03c9cdf7516006cd6afe821ca103cb54f1df8.zip
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. llvm-svn: 16772
Diffstat (limited to 'llvm/lib/Analysis/ProfileInfoLoader.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud