mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-31 08:16:47 +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:
		| @@ -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); | ||||
|     } | ||||
|   } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user