do not bother reuniquing mdnodes whose operands drop to null. Doing
authorChris Lattner <sabre@nondot.org>
Wed, 30 Dec 2009 21:42:11 +0000 (21:42 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 30 Dec 2009 21:42:11 +0000 (21:42 +0000)
commit54a1f9f9c1e2cf6f4541e998b20f5c7cfbe642d9
tree0fcab2122eded0f20eddece09ebd8ffc21c1fb57
parent83738a20ddb64838f94461320c6af8ae2a8329ba
do not bother reuniquing mdnodes whose operands drop to null.  Doing
so can be a huge performance issue when tearing down modules and mdnodes
are not guaranteed to be unique anyway.  This speeds up:
$ time ~/llvm/Release/bin/clang gcc.c -w -S -g

from 72 to 35s, where gcc.c is from:
http://people.csail.mit.edu/smcc/projects/single-file-programs/

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92315 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Metadata.h
lib/VMCore/Metadata.cpp