[SelectionDAG] Make sorting predicate stronger to remove non-deterministic ordering
authorMandeep Singh Grang <mgrang@codeaurora.org>
Mon, 20 Nov 2017 18:46:11 +0000 (18:46 +0000)
committerMandeep Singh Grang <mgrang@codeaurora.org>
Mon, 20 Nov 2017 18:46:11 +0000 (18:46 +0000)
commitdc9de50902b34e4995f73bfa33a0ad40b4928518
treedb258ddd5a28f6c3789137f4c682e5965a79a922
parentf0b02965e4736af445505a30840fe2b63fa3d2f7
[SelectionDAG] Make sorting predicate stronger to remove non-deterministic ordering

Summary:
This fixes failures in the following tests uncovered by D39245:
        LLVM :: CodeGen/ARM/ifcvt3.ll
        LLVM :: CodeGen/ARM/switch-minsize.ll
        LLVM :: CodeGen/X86/switch.ll

Reviewers: hans, efriedma

Reviewed By: hans

Subscribers: fhahn, aemerson, kristof.beyls, llvm-commits

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

llvm-svn: 318680
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp