Rewrite CanShareConstantPoolEntry to be implemented in terms of the
authorChris Lattner <sabre@nondot.org>
Fri, 27 Jan 2012 01:46:00 +0000 (01:46 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 27 Jan 2012 01:46:00 +0000 (01:46 +0000)
commit73858d16893e4cddd97f358a19b48bd4bc57ee97
treeac1df403d31322009d901983496a7c6c9d01f4ac
parentf983da030e8295ae0f9a74d1185f999485f792b3
Rewrite CanShareConstantPoolEntry to be implemented in terms of the
mid-level constant folding APIs instead of doing its own analysis.
This makes it more general (e.g. can now share a <2 x i64> with a
<4 x i32>) and avoid duplicating a bunch of logic.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149111 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineFunction.cpp