mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-26 04:34:41 +00:00
[objcarcopts] Encapsulate PtrState.RRI.CFGHazardAfflicted via methods PtrState.{IsCFGHazardAfflicted,SetCFGHazardAfflicted}.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184582 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0ff4287fe2
commit
a211578aa2
@ -555,6 +555,14 @@ namespace {
|
||||
RRI.ReleaseMetadata = NewValue;
|
||||
}
|
||||
|
||||
bool IsCFGHazardAfflicted() const {
|
||||
return RRI.CFGHazardAfflicted;
|
||||
}
|
||||
|
||||
void SetCFGHazardAfflicted(const bool NewValue) {
|
||||
RRI.CFGHazardAfflicted = NewValue;
|
||||
}
|
||||
|
||||
void SetKnownPositiveRefCount() {
|
||||
DEBUG(dbgs() << "Setting Known Positive.\n");
|
||||
KnownPositiveRefCount = true;
|
||||
@ -1752,7 +1760,7 @@ static void CheckForUseCFGHazard(const Sequence SuccSSeq,
|
||||
S.ClearSequenceProgress();
|
||||
break;
|
||||
}
|
||||
S.RRI.CFGHazardAfflicted = true;
|
||||
S.SetCFGHazardAfflicted(true);
|
||||
ShouldContinue = true;
|
||||
break;
|
||||
}
|
||||
@ -1894,7 +1902,7 @@ ObjCARCOpt::CheckForCFGHazards(const BasicBlock *BB,
|
||||
// safe, stop code motion. This is because whether or not it is safe to
|
||||
// remove RR pairs via KnownSafe is an orthogonal concept to whether we
|
||||
// are allowed to perform code motion.
|
||||
S.RRI.CFGHazardAfflicted = true;
|
||||
S.SetCFGHazardAfflicted(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user