mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-04 10:30:01 +00:00
[objcarcopts] Encapsulated PtrState.RRI.IsTrackingImpreciseRelease() => PtrState.IsTrackingImpreciseRelease().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184583 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a211578aa2
commit
65af4b5333
@ -469,9 +469,6 @@ namespace {
|
||||
/// occured, false otherwise.
|
||||
bool Merge(const RRInfo &Other);
|
||||
|
||||
bool IsTrackingImpreciseReleases() {
|
||||
return ReleaseMetadata != 0;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@ -547,6 +544,10 @@ namespace {
|
||||
RRI.IsTailCallRelease = NewValue;
|
||||
}
|
||||
|
||||
bool IsTrackingImpreciseReleases() {
|
||||
return RRI.ReleaseMetadata != 0;
|
||||
}
|
||||
|
||||
const MDNode *GetReleaseMetadata() const {
|
||||
return RRI.ReleaseMetadata;
|
||||
}
|
||||
@ -1967,7 +1968,7 @@ ObjCARCOpt::VisitInstructionBottomUp(Instruction *Inst,
|
||||
case S_Use:
|
||||
// If OldSeq is not S_Use or OldSeq is S_Use and we are tracking an
|
||||
// imprecise release, clear our reverse insertion points.
|
||||
if (OldSeq != S_Use || S.RRI.IsTrackingImpreciseReleases())
|
||||
if (OldSeq != S_Use || S.IsTrackingImpreciseReleases())
|
||||
S.RRI.ReverseInsertPts.clear();
|
||||
// FALL THROUGH
|
||||
case S_CanRelease:
|
||||
|
Loading…
x
Reference in New Issue
Block a user