Skip to content

Commit 7106daa

Browse files
stefan-iligcbot
authored andcommitted
Remove redundant overlap check from MergeAllocas
The check is also done in AddNonOverlappingAlloca making in unncecessary.
1 parent 61653f9 commit 7106daa

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

IGC/AdaptorCommon/LivenessUtils/MergeAllocas.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,6 @@ bool MergeAllocas::runOnFunction(Function &F) {
218218
// We check if the current alloca overlaps with any of the previously added.
219219
bool added = false;
220220
for (auto *MergableAlloca : MergableAllocas) {
221-
if (AllocaInfo.livenessData->OverlapsWith(*MergableAlloca->livenessData)) {
222-
continue;
223-
}
224221
added = AddNonOverlappingAlloca(MergableAlloca, &AllocaInfo);
225222
if (added) {
226223
break;

0 commit comments

Comments
 (0)