Skip to content

Commit

Permalink
[allocation] Buffers do not have region id should not interfere. (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
htyu authored Dec 14, 2024
1 parent ad76381 commit ab5f7c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Analysis/Allocation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,8 @@ class AllocationAnalysis {
auto inDifferentRegion = [&](BufferT *A, BufferT *B) {
auto tA = A->regionIds;
auto tB = B->regionIds;
if (tA.empty() && tB.empty())
return false;
if (tA.empty() || tB.empty())
return true;
for (auto t1 : tA) {
Expand Down

0 comments on commit ab5f7c2

Please sign in to comment.