mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Fix crash in AggressiveAntiDepBreaker with empty CriticalPathSet
If no register classes are added to CriticalPathRCs, then the CriticalPathSet bitmask will be empty. In that case, ExcludeRegs must remain NULL or else this line will cause a segfault: } else if ((ExcludeRegs != NULL) && ExcludeRegs->test(AntiDepReg)) { I have no in-tree test case. llvm-svn: 190584
This commit is contained in:
parent
6a507da088
commit
c56d8f90fd
@ -782,7 +782,7 @@ unsigned AggressiveAntiDepBreaker::BreakAntiDependencies(
|
||||
if (MI == CriticalPathMI) {
|
||||
CriticalPathSU = CriticalPathStep(CriticalPathSU);
|
||||
CriticalPathMI = (CriticalPathSU) ? CriticalPathSU->getInstr() : 0;
|
||||
} else {
|
||||
} else if (CriticalPathSet.any()) {
|
||||
ExcludeRegs = &CriticalPathSet;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user