Fix inverted conflict test in -early-coalesce.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 7 Nov 2009 01:58:40 +0000 (01:58 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 7 Nov 2009 01:58:40 +0000 (01:58 +0000)
commit3de23e6f6cf337451a0934159da494d645b93133
treee37b7e58258130f06e5f359cc760e4c24287d30e
parent12d53dba36905d20b02cf7c4cdae057ae4a5a5e1
Fix inverted conflict test in -early-coalesce.

A non-identity copy cannot be coalesced when the phi join destination register
is live at the copy site.

Also verify the condition that the PHI join source register is only used in
the PHI join. Otherwise the coalescing is invalid.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86322 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/LiveIntervalAnalysis.h
lib/CodeGen/LiveIntervalAnalysis.cpp