Bitcode: Correctly compare a Use against itself
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 29 Jul 2014 01:13:56 +0000 (01:13 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 29 Jul 2014 01:13:56 +0000 (01:13 +0000)
commit994af148ca788984dff71afcdfca99e388325973
treed32f2edf7bd3007e898af269a2f71a671767ccbc
parent15f92a3a7d2a94ceb527d6592a81951f1e3df538
Bitcode: Correctly compare a Use against itself

Fix the sort of expected order in the reader to correctly return `false`
when comparing a `Use` against itself.

This was caught by test/Bitcode/binaryIntInstructions.3.2.ll, so I'm
adding a `RUN` line using `llvm-uselistorder` for every test in
`test/Bitcode` that passes.

A few tests still fail, so I'll investigate those next.

This is part of PR5680.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214157 91177308-0d34-0410-b5e6-96231b3b80d8
36 files changed:
lib/Bitcode/Writer/ValueEnumerator.cpp
test/Bitcode/2006-12-11-Cast-ConstExpr.ll
test/Bitcode/2009-06-11-FirstClassAggregateConstant.ll
test/Bitcode/aggregateInstructions.3.2.ll
test/Bitcode/arm32_neon_vcnt_upgrade.ll
test/Bitcode/atomic.ll
test/Bitcode/attributes-3.3.ll
test/Bitcode/attributes.ll
test/Bitcode/binaryFloatInstructions.3.2.ll
test/Bitcode/binaryIntInstructions.3.2.ll
test/Bitcode/bitwiseInstructions.3.2.ll
test/Bitcode/calling-conventions.3.2.ll
test/Bitcode/case-ranges-3.3.ll
test/Bitcode/cmpxchg-upgrade.ll
test/Bitcode/conversionInstructions.3.2.ll
test/Bitcode/drop-debug-info.ll
test/Bitcode/extractelement.ll
test/Bitcode/flags.ll
test/Bitcode/function-encoding-rel-operands.ll
test/Bitcode/global-variables.3.2.ll
test/Bitcode/inalloca.ll
test/Bitcode/linkage-types-3.2.ll
test/Bitcode/memInstructions.3.2.ll
test/Bitcode/metadata.ll
test/Bitcode/ptest-new.ll
test/Bitcode/ptest-old.ll
test/Bitcode/select.ll
test/Bitcode/shuffle.ll
test/Bitcode/tailcall.ll
test/Bitcode/terminatorInstructions.3.2.ll
test/Bitcode/upgrade-global-ctors.ll
test/Bitcode/upgrade-loop-metadata.ll
test/Bitcode/upgrade-tbaa.ll
test/Bitcode/vectorInstructions.3.2.ll
test/Bitcode/visibility-styles.3.2.ll
test/Bitcode/weak-cmpxchg-upgrade.ll