Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 0 additions & 2 deletions include/triton/Analysis/Allocation.h
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,6 @@ class ModuleAllocation : public CallGraph<Allocation> {
FuncOffsetMapT sharedMemoryValue;
};

template <typename T> Interval(T, T) -> Interval<T>;

} // namespace mlir

#endif // TRITON_ANALYSIS_ALLOCATION_H
2 changes: 1 addition & 1 deletion include/triton/Analysis/Membar.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class MembarAnalysis {
/// in the following circumstances:
/// - RAW: If a shared memory write is followed by a shared memory read, and
/// their addresses are intersected, a barrier is inserted.
/// - WAR: If a shared memory read is followed by a shared memory read, and
/// - WAR: If a shared memory read is followed by a shared memory write, and
/// their addresses are intersected, a barrier is inserted.
/// The following circumstances do not require a barrier:
/// - WAW: not possible because overlapped memory allocation is not allowed.
Expand Down
5 changes: 2 additions & 3 deletions lib/Analysis/Membar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,8 @@ void MembarAnalysis::visitTerminator(Operation *op,
SmallVector<Block *> &successors) {
if (auto branchInterface = dyn_cast<BranchOpInterface>(op)) {
Block *parentBlock = branchInterface->getBlock();
for (Block *successor : parentBlock->getSuccessors()) {
successors.push_back(successor);
}
successors.append(std::begin(parentBlock->getSuccessors()),
std::end(parentBlock->getSuccessors()));
return;
}
// Otherwise, it could be a return op
Expand Down