LiveInterval: Fix computeFromMainRange() producing adjacent segments with same valno
authorMatthias Braun <matze@braunis.de>
Wed, 8 Apr 2015 01:41:10 +0000 (01:41 +0000)
committerMatthias Braun <matze@braunis.de>
Wed, 8 Apr 2015 01:41:10 +0000 (01:41 +0000)
commit593fcb485412b1e50fdec8045b98cd9aa5ea15ef
treec6b834eda40fc4722b2282167d5824ab4af9627e
parenta787066317cad918dcfc259c843ae93ff2734229
LiveInterval: Fix computeFromMainRange() producing adjacent segments with same valno

If two livesegments from different subranges happened to have the same
definition they could possibly end up as two adjacent segments in the
main liverange with the same value number which is not allowed. Detect
such cases and fix them in the 2nd pass of computeFromMainRange() if
necessary.

No testcase as there is only an out-of-tree target where I can sensibly
come up with one.

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