Re-apply r286006: Fix 24560: assembler does not share constant pool for same constants
authorJames Molloy <james.molloy@arm.com>
Mon, 22 May 2017 09:42:01 +0000 (09:42 +0000)
committerJames Molloy <james.molloy@arm.com>
Mon, 22 May 2017 09:42:01 +0000 (09:42 +0000)
commit5193c80830995d951049db7bcf510e38b0b1521e
tree902c03c815e85bc6e95256847e370e464f92196d
parentab9573f37cd0ede2f53d47f0abd72625d1603ea9
Re-apply r286006: Fix 24560:  assembler does not share constant pool for same constants

Re-applying now that the open bug on this commit, PR32825, is known to be fixed.

Original commit message:
    Summary: This patch returns the same label if the CP entry with the same value has been created.

    Reviewers: eli.friedman, rengolin, jmolloy

    Subscribers: majnemer, jmolloy, llvm-commits

    Differential Revision: https://reviews.llvm.org/D25804

llvm-svn: 303539
llvm/include/llvm/MC/ConstantPools.h
llvm/lib/MC/ConstantPools.cpp
llvm/test/MC/AArch64/ldr-pseudo.s
llvm/test/MC/ARM/ldr-pseudo-darwin.s
llvm/test/MC/ARM/ldr-pseudo-wide.s
llvm/test/MC/ARM/ldr-pseudo.s