Fix PR6750. Don't try to merge a DomainValue with itself.

llvm-svn: 100016
This commit is contained in:
Jakob Stoklund Olesen 2010-03-31 17:13:16 +00:00
parent 587b1d419d
commit 4cd5866f8e
1 changed files with 2 additions and 0 deletions

View File

@ -261,6 +261,8 @@ void SSEDomainFixPass::Collapse(DomainValue *dv, unsigned domain) {
bool SSEDomainFixPass::Merge(DomainValue *A, DomainValue *B) {
assert(!A->collapsed() && "Cannot merge into collapsed");
assert(!B->collapsed() && "Cannot merge from collapsed");
if (A == B)
return true;
if (!A->compat(B->Mask))
return false;
A->Mask &= B->Mask;