Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/transform/thread_storage_sync.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1417,8 +1417,8 @@ struct TileLangThreadSyncPlanner : public ConstrVisitor {

// If this is a read into a double buffer that was previously
// swapped out, then it doesn't conflict.
if (prev.double_buffer_write && curr.type == kRead && !loop_carry) {
return false;
if (curr.type == kWrite && prev.type == kRead && loop_carry) {
return true;
}

// If nothing else allows sharing the same buffer, then they are
Expand Down
Loading