mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-05 01:31:05 +00:00
Fix PR6750. Don't try to merge a DomainValue with itself.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100016 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
41d43ebac5
commit
5f282b5dfd
@ -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…
x
Reference in New Issue
Block a user