reapply r148901 with a crucial fix.
authorChris Lattner <sabre@nondot.org>
Wed, 25 Jan 2012 05:19:54 +0000 (05:19 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 25 Jan 2012 05:19:54 +0000 (05:19 +0000)
commit3c2c954e0baf4c5029f87277d75cc6ca38916f71
tree454188c0fcab1934f01b5994a3ce88adfd8b4327
parentbce73e0a8c0899f70aca1c9b9184f570f9c7c614
reapply r148901 with a crucial fix.

"Introduce a new ConstantVector::getSplat constructor function to
simplify a really common case."

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