RemoveCopyByCommutingDef doesn't need hasPHIKill().
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 15 Sep 2011 05:03:50 +0000 (05:03 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 15 Sep 2011 05:03:50 +0000 (05:03 +0000)
commitde07abe35de24e551783ee20a4213729b3524baa
treea3601dbc042936169244bb23e15911eb57e96a85
parent4ea24e993f179113a9bb76ee152cc490e738c936
RemoveCopyByCommutingDef doesn't need hasPHIKill().

Instead, let HasOtherReachingDefs() test for defs in B that overlap any
phi-defs in A as well.  This test is slightly different, but almost
identical.

A perfectly precise test would only check those phi-defs in A that are
reachable from AValNo.

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