UseListOrder: Don't give constant IDs to GlobalValues
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Thu, 31 Jul 2014 00:13:28 +0000 (00:13 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Thu, 31 Jul 2014 00:13:28 +0000 (00:13 +0000)
commite5ae09b08fdcbfd2440d527e64d805c915f4ee41
tree87f3b3f2235591710c58853ae36c53ab59f499d0
parentdc6c25c9eeb4b887e1a912489b618fd1ba44dc7a
UseListOrder: Don't give constant IDs to GlobalValues

Since initializers of GlobalValues are being assigned IDs before
GlobalValues themselves, explicitly exclude GlobalValues from the
constant pool.  Added targeted test in `test/Bitcode/use-list-order.ll`
and added two more RUN lines in `test/Assembly`.

This is part of PR5680.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214368 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Bitcode/Writer/ValueEnumerator.cpp
test/Assembler/ConstantExprFold.ll
test/Assembler/ConstantExprFoldCast.ll
test/Bitcode/use-list-order.ll