Eliminate copies of undefined values during coalescing.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 26 Jul 2011 23:00:24 +0000 (23:00 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 26 Jul 2011 23:00:24 +0000 (23:00 +0000)
commite4709777e38b58b856cf8395e071a3326d50a402
tree165495c1b503ea60a45b5f10085092c680f67eb2
parent25ad78332282cded86938d556d4ee2384158b671
Eliminate copies of undefined values during coalescing.

These copies would coalesce easily, but the resulting value would be
defined by a deleted instruction. Now we also remove the undefined value
number from the destination register.

This fixes PR10503.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136174 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/RegisterCoalescer.cpp
lib/CodeGen/RegisterCoalescer.h
test/CodeGen/X86/crash-nosse.ll [new file with mode: 0644]