Cache TargetData/AliasAnalysis in the pass instead of calling
authorChris Lattner <sabre@nondot.org>
Sun, 30 Nov 2008 19:24:31 +0000 (19:24 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 30 Nov 2008 19:24:31 +0000 (19:24 +0000)
commitd777d405cdda8d418ba8e8818e5c1272dfd999a0
treeeccab7593cce33a8734bd8240436373600d92358
parent012618f0fc4df0664e6d7ad6b443173d89820213
Cache TargetData/AliasAnalysis in the pass instead of calling
getAnalysis<>.  getAnalysis<> is apparently extremely expensive.
Doing this speeds up GVN on 403.gcc by 16%!

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