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; |       RRI.ReleaseMetadata = NewValue; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     bool IsCFGHazardAfflicted() const { | ||||||
|  |       return RRI.CFGHazardAfflicted; | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     void SetCFGHazardAfflicted(const bool NewValue) { | ||||||
|  |       RRI.CFGHazardAfflicted = NewValue; | ||||||
|  |     } | ||||||
|  |  | ||||||
|     void SetKnownPositiveRefCount() { |     void SetKnownPositiveRefCount() { | ||||||
|       DEBUG(dbgs() << "Setting Known Positive.\n"); |       DEBUG(dbgs() << "Setting Known Positive.\n"); | ||||||
|       KnownPositiveRefCount = true; |       KnownPositiveRefCount = true; | ||||||
| @@ -1752,7 +1760,7 @@ static void CheckForUseCFGHazard(const Sequence SuccSSeq, | |||||||
|       S.ClearSequenceProgress(); |       S.ClearSequenceProgress(); | ||||||
|       break; |       break; | ||||||
|     } |     } | ||||||
|     S.RRI.CFGHazardAfflicted = true; |     S.SetCFGHazardAfflicted(true); | ||||||
|     ShouldContinue = true; |     ShouldContinue = true; | ||||||
|     break; |     break; | ||||||
|   } |   } | ||||||
| @@ -1894,7 +1902,7 @@ ObjCARCOpt::CheckForCFGHazards(const BasicBlock *BB, | |||||||
|       // safe, stop code motion. This is because whether or not it is safe to |       // 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 |       // remove RR pairs via KnownSafe is an orthogonal concept to whether we | ||||||
|       // are allowed to perform code motion. |       // are allowed to perform code motion. | ||||||
|       S.RRI.CFGHazardAfflicted = true; |       S.SetCFGHazardAfflicted(true); | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user