Split SimpleConstantVal up into its components, so each Constant subclass gets
authorChris Lattner <sabre@nondot.org>
Tue, 27 Sep 2005 06:08:32 +0000 (06:08 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 27 Sep 2005 06:08:32 +0000 (06:08 +0000)
commit225e8dd2f512e3e6840ba7cb1570fdc4d56a853f
tree67a27bd3b6c0cf2740ba46ab743883934723d6a1
parenta9ec8ab32bce9021c9501b45eea6bbc76ffeb207
Split SimpleConstantVal up into its components, so each Constant subclass gets
a different enum value.  This allows 'classof' for these to be really simple,
not needing to call getType() anymore.

This speeds up isa/dyncast/etc for constants, and also makes them smaller.
For example, the text section of a release build of InstCombine.cpp shrinks
from 230037 bytes to 216363 bytes, a 6% reduction.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23466 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Constant.h
include/llvm/Constants.h
include/llvm/Value.h