IR: Allow vectors of halfs to be ConstantDataVectors
authorJustin Bogner <mail@justinbogner.com>
Tue, 8 Dec 2015 03:01:16 +0000 (03:01 +0000)
committerJustin Bogner <mail@justinbogner.com>
Tue, 8 Dec 2015 03:01:16 +0000 (03:01 +0000)
commite32f0e20e5af6fe16869bde63c121b5571133550
tree28c3d3dac696b2725b54de5b0f8c566897bae8d8
parentf2765767e6131c9b9b50acd53d58b54717fbd7c7
IR: Allow vectors of halfs to be ConstantDataVectors

Currently, vectors of halfs end up as ConstantVectors, but there isn't
a good reason they can't be ConstantDataVectors. This should save some
memory.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254991 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/Constants.cpp
test/CodeGen/X86/float-asmprint.ll
unittests/IR/ConstantsTest.cpp