summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/Constants.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-09-27 06:08:32 +0000
committerChris Lattner <sabre@nondot.org>2005-09-27 06:08:32 +0000
commit555fb9c98424360b6b64461ab3d5e1f975c74bf0 (patch)
tree6dee4d5d511d396f51ec768a1af5ff3cc55cce32 /llvm/lib/VMCore/Constants.cpp
parent3d27e7f27f37e700a5d6124d010e32c4739f788c (diff)
downloadbcm5719-llvm-555fb9c98424360b6b64461ab3d5e1f975c74bf0.tar.gz
bcm5719-llvm-555fb9c98424360b6b64461ab3d5e1f975c74bf0.zip
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. llvm-svn: 23466
Diffstat (limited to 'llvm/lib/VMCore/Constants.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud