Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit ccdf189

Browse files
author
Jun Bum Lim
committed
[MachineCopyPropagation] Fix comment. NFC
Reviewers: MatzeB, qcolombet, jmolloy, mcrosier Subscribers: llvm-commits, mcrosier Differential Revision: http://reviews.llvm.org/D16806 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@259656 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent db6591c commit ccdf189

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/CodeGen/MachineCopyPropagation.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ bool MachineCopyPropagation::CopyPropagateBlock(MachineBasicBlock &MBB) {
182182
}
183183
}
184184

185-
// If Src is defined by a previous copy, it cannot be eliminated.
185+
// If Src is defined by a previous copy, the previous copy cannot be
186+
// eliminated.
186187
for (MCRegAliasIterator AI(Src, TRI, true); AI.isValid(); ++AI) {
187188
CI = CopyMap.find(*AI);
188189
if (CI != CopyMap.end()) {
@@ -196,7 +197,7 @@ bool MachineCopyPropagation::CopyPropagateBlock(MachineBasicBlock &MBB) {
196197
// Copy is now a candidate for deletion.
197198
MaybeDeadCopies.insert(MI);
198199

199-
// If 'Src' is previously source of another copy, then this earlier copy's
200+
// If 'Def' is previously source of another copy, then this earlier copy's
200201
// source is no longer available. e.g.
201202
// %xmm9<def> = copy %xmm2
202203
// ...

0 commit comments

Comments
 (0)