Speedup and simplify pass registration by the observation that there is
authorChris Lattner <sabre@nondot.org>
Mon, 23 Jan 2006 01:01:04 +0000 (01:01 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 23 Jan 2006 01:01:04 +0000 (01:01 +0000)
commit1ac2d518067f8341fb59c1c5ba1f5787fd78abe2
treeff45083f47d319b4adc4d1f3ce0f983f24ea7124
parentfc4417837a37715d0b8d4fcca6f90a5f3c08acfc
Speedup and simplify pass registration by the observation that there is
exactly one PassInfo object per RegisterPass object and that their lifetimes
are the same.  As such, there is no reason for the RegisterPass object to
dynamically allocate the PassInfo object at compiler startup time: just inline
the object by-value.  This should reduce codesize, heap size, and startup time. Yaay.

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