Sort the incoming values in PHI nodes to match the predecessor order.
authorDan Gohman <gohman@apple.com>
Fri, 30 Oct 2009 22:22:22 +0000 (22:22 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 30 Oct 2009 22:22:22 +0000 (22:22 +0000)
commit8e42e4baaea4c9252eba39a4bcf4f295ebd8c78a
tree81ef2bef0be4428fd4d7ce27a91c5359e1e15cdd
parent0115e164bad632572e2cfbaf72f0f0882d5319de
Sort the incoming values in PHI nodes to match the predecessor order.
This helps expose duplicate PHIs, which will make it easier for them
to be eliminated.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85623 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp