forked from OSchip/llvm-project
Fix PR6750. Don't try to merge a DomainValue with itself.
llvm-svn: 100016
This commit is contained in:
parent
587b1d419d
commit
4cd5866f8e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue