Skip to content

Commit

Permalink
Fix PR6750. Don't try to merge a DomainValue with itself.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100016 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
stoklund committed Mar 31, 2010
1 parent 41d43eb commit 5f282b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Target/X86/SSEDomainFix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5f282b5

Please sign in to comment.