mirror of
				https://github.com/intel/intel-graphics-compiler.git
				synced 2025-10-30 08:18:26 +08:00 
			
		
		
		
	Remove redundant overlap check from MergeAllocas
The check is also done in AddNonOverlappingAlloca making in unncecessary.
This commit is contained in:
		| @ -218,9 +218,6 @@ bool MergeAllocas::runOnFunction(Function &F) { | ||||
|     // We check if the current alloca overlaps with any of the previously added. | ||||
|     bool added = false; | ||||
|     for (auto *MergableAlloca : MergableAllocas) { | ||||
|       if (AllocaInfo.livenessData->OverlapsWith(*MergableAlloca->livenessData)) { | ||||
|         continue; | ||||
|       } | ||||
|       added = AddNonOverlappingAlloca(MergableAlloca, &AllocaInfo); | ||||
|       if (added) { | ||||
|         break; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Stefan Ilic
					Stefan Ilic