Add a new LargeBlockInfo helper, which is just a wrapper around
authorChris Lattner <sabre@nondot.org>
Mon, 27 Oct 2008 06:05:26 +0000 (06:05 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 27 Oct 2008 06:05:26 +0000 (06:05 +0000)
commit33210608bee7d28029febc0b835ebd0f760a7bc0
treececb08d98cc9de99f5a1e1bae7ea42d66d3ae042
parentf322a9807ac3d3c5063e338e0f421e76d3c752fc
Add a new LargeBlockInfo helper, which is just a wrapper around
a trivial dense map.  Use this in RewriteSingleStoreAlloca to
avoid aggressively rescanning blocks over and over again.  This
fixes PR2925, speeding up mem2reg on the testcase in that bug
from 4.56s to 0.02s in a debug build on my machine.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58227 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/PromoteMemoryToRegister.cpp