UseListOrder: Handle self-users
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Thu, 31 Jul 2014 18:33:12 +0000 (18:33 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Thu, 31 Jul 2014 18:33:12 +0000 (18:33 +0000)
commit9d65d3717c184449f4417bc5639e5f7513017c0e
tree1c835f0a9412b8702bd1d0b51490bfadf1663382
parent5dbbe4adbe0141fc6705062fab835e5e32b56362
UseListOrder: Handle self-users

Correctly sort self-users (such as PHI nodes).  I added a targeted test
in `test/Bitcode/use-list-order.ll` and the final missing RUN line to
tests in `test/Assembly`.

This is part of PR5680.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214417 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Bitcode/Writer/ValueEnumerator.cpp
test/Assembler/2002-08-22-DominanceProblem.ll
test/Bitcode/use-list-order.ll