mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-11 16:37:42 +00:00
Q.seenAllInterferences() must be called after Q.collectInterferingVRegs().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121774 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
abfbac52df
commit
d84de8cf62
@ -175,9 +175,9 @@ LiveInterval *RAGreedy::getSingleInterference(LiveInterval &VirtReg,
|
||||
// Check direct interferences.
|
||||
LiveIntervalUnion::Query &Q = query(VirtReg, PhysReg);
|
||||
if (Q.checkInterference()) {
|
||||
Q.collectInterferingVRegs(1);
|
||||
if (!Q.seenAllInterferences())
|
||||
return 0;
|
||||
Q.collectInterferingVRegs(1);
|
||||
Interference = Q.interferingVRegs().front();
|
||||
}
|
||||
|
||||
@ -185,9 +185,11 @@ LiveInterval *RAGreedy::getSingleInterference(LiveInterval &VirtReg,
|
||||
for (const unsigned *AliasI = TRI->getAliasSet(PhysReg); *AliasI; ++AliasI) {
|
||||
LiveIntervalUnion::Query &Q = query(VirtReg, *AliasI);
|
||||
if (Q.checkInterference()) {
|
||||
if (Interference || !Q.seenAllInterferences())
|
||||
if (Interference)
|
||||
return 0;
|
||||
Q.collectInterferingVRegs(1);
|
||||
if (!Q.seenAllInterferences())
|
||||
return 0;
|
||||
Interference = Q.interferingVRegs().front();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user