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)
commit6f750267066c1f724452dc7b20344097987eff21
tree3da151e45fcaa59a316173a40c0d4f2faf9ef199
parent4e521d950016ceb2fc215bf6c09e58c358cb4b69
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.

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