Skip to content

Commit 968135b

Browse files
committed
Adjust comment
1 parent 909a048 commit 968135b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

llvm/lib/Target/AMDGPU/AMDGPURewriteAGPRCopyMFMA.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,12 @@ bool AMDGPURewriteAGPRCopyMFMAImpl::tryReassigningMFMAChain(
190190
// to ensure dst ends up in the physreg we were originally copying to.
191191
RewriteRegs.insert(MFMAHintReg);
192192

193-
// We've found av = COPY (MFMA), and need to verify that we can trivially
194-
// rewrite src2 to use the new AGPR. If we can't trivially replace it,
195-
// we're going to induce as many copies as we would have emitted in the
196-
// first place, as well as need to assign another register, and need to
197-
// figure out where to put them. The live range splitting is smarter than
198-
// anything we're doing here, so trust it did something reasonable.
193+
// We've found av = COPY (MFMA) (or MFMA (v = COPY av)) and need to verify
194+
// that we can trivially rewrite src2 to use the new AGPR. If we can't
195+
// trivially replace it, we're going to induce as many copies as we would have
196+
// emitted in the first place, as well as need to assign another register, and
197+
// need to figure out where to put them. The live range splitting is smarter
198+
// than anything we're doing here, so trust it did something reasonable.
199199
//
200200
// Note recomputeRegClassExceptRewritable will consider the constraints of
201201
// this MFMA's src2 as well as the src2/dst of any transitive MFMA users.

0 commit comments

Comments
 (0)