[llvm] r259656 - [MachineCopyPropagation] Fix comment. NFC
Jun Bum Lim via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 3 07:56:28 PST 2016
Author: junbuml
Date: Wed Feb 3 09:56:27 2016
New Revision: 259656
URL: http://llvm.org/viewvc/llvm-project?rev=259656&view=rev
Log:
[MachineCopyPropagation] Fix comment. NFC
Reviewers: MatzeB, qcolombet, jmolloy, mcrosier
Subscribers: llvm-commits, mcrosier
Differential Revision: http://reviews.llvm.org/D16806
Modified:
llvm/trunk/lib/CodeGen/MachineCopyPropagation.cpp
Modified: llvm/trunk/lib/CodeGen/MachineCopyPropagation.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineCopyPropagation.cpp?rev=259656&r1=259655&r2=259656&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineCopyPropagation.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineCopyPropagation.cpp Wed Feb 3 09:56:27 2016
@@ -182,7 +182,8 @@ bool MachineCopyPropagation::CopyPropaga
}
}
- // If Src is defined by a previous copy, it cannot be eliminated.
+ // If Src is defined by a previous copy, the previous copy cannot be
+ // eliminated.
for (MCRegAliasIterator AI(Src, TRI, true); AI.isValid(); ++AI) {
CI = CopyMap.find(*AI);
if (CI != CopyMap.end()) {
@@ -196,7 +197,7 @@ bool MachineCopyPropagation::CopyPropaga
// Copy is now a candidate for deletion.
MaybeDeadCopies.insert(MI);
- // If 'Src' is previously source of another copy, then this earlier copy's
+ // If 'Def' is previously source of another copy, then this earlier copy's
// source is no longer available. e.g.
// %xmm9<def> = copy %xmm2
// ...
More information about the llvm-commits
mailing list