MachineSink: Sort the successors before trying to find SuccToSinkTo.
authorManman Ren <mren@apple.com>
Tue, 31 Jul 2012 20:45:38 +0000 (20:45 +0000)
committerManman Ren <mren@apple.com>
Tue, 31 Jul 2012 20:45:38 +0000 (20:45 +0000)
commitf99efdf3290b438a2cd74304e4299d50bce2b397
tree67fd2eab861c7075ca2f2d2a596ca9effba1e97c
parent5f8e8bd656bb174b3e22c0e56ce3d1eb958ac2e2
MachineSink: Sort the successors before trying to find SuccToSinkTo.

Use stable_sort instead of sort. Follow-up to r161062.

rdar://11980766

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161075 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineSink.cpp