Skip to content

Commit 9affc3a

Browse files
committed
- Reword \file description
1 parent b593a98 commit 9affc3a

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

llvm/lib/Target/AMDGPU/AMDGPUBarrierLatency.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
//===----------------------------------------------------------------------===//
88
//
99
/// \file This file contains a DAG scheduling mutation to add latency to
10-
/// barrier edges between ATOMIC_FENCE instructions and preceeding
10+
/// barrier edges between ATOMIC_FENCE instructions and preceding
1111
/// memory accesses potentially affected by the fence.
12-
/// This is beneficial when a fence would cause wait count insertion,
13-
/// as more instructions will be scheduled before the fence hiding
14-
/// memory latency.
15-
/// It also reduces the risk of a fence causing a premature wait
16-
/// on all active memory operations.
12+
/// This encourages the scheduling of more instructions before
13+
/// ATOMIC_FENCE instructions. ATOMIC_FENCE instructions may
14+
/// introduce wait counting or indicate an impending S_BARRIER
15+
/// wait. Having more instructions in-flight across these
16+
/// constructs improves latency hiding.
1717
//
1818
//===----------------------------------------------------------------------===//
1919

llvm/test/CodeGen/AMDGPU/schedule-barrier-latency.mir

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# RUN: llc -mtriple=amdgcn -mcpu=gfx1100 -passes=postmisched -o - %s | FileCheck %s
33

44
# Ensure WMMA operations stay before the final atomic fence and barrier group.
5+
# This allows the latency of the WMMA operations to be hidden by barrier wait.
56
---
67
name: test
78
tracksRegLiveness: true

0 commit comments

Comments
 (0)