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)
commit0ebc8605ad74082c1b01b8500782ca220d3eb0df
treed3f8f5e5d43d982f5930f860894ebd45ef6899bb
parentb13edeb9b5032c85c0f51c6bbdd61d9aebf287c4
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.

llvm-svn: 254991
llvm/lib/IR/Constants.cpp
llvm/test/CodeGen/X86/float-asmprint.ll
llvm/unittests/IR/ConstantsTest.cpp