RegisterCoalescer: Improve previous fix for wrong def after.
authorMatthias Braun <matze@braunis.de>
Mon, 16 Feb 2015 19:34:27 +0000 (19:34 +0000)
committerMatthias Braun <matze@braunis.de>
Mon, 16 Feb 2015 19:34:27 +0000 (19:34 +0000)
commit2eab0e30e1e4316c6b3fd554864b9c8df3de84e6
treee76b75f00b88cf80a08d2a0e8147cdd9fe823957
parent1fa7b972c02efa8e80706995f1c6326e68205c47
RegisterCoalescer: Improve previous fix for wrong def after.

The previous fix in r225503 was needlessly complicated. The problem goes
away as well if the arguments to MergeValueNumberInto are supplied in the
correct order.
This was previously missed because the existing code already had the
wrong order but an additional later Merge was hiding the bug for the
main liverange VNI.

llvm-svn: 229424
llvm/lib/CodeGen/RegisterCoalescer.cpp