[PATCH] D16806: [MachineCopyPropagation] Fix comment. NFC
Jun Bum Lim via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 3 08:00:44 PST 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL259656: [MachineCopyPropagation] Fix comment. NFC (authored by junbuml).
Changed prior to commit:
http://reviews.llvm.org/D16806?vs=46654&id=46788#toc
Repository:
rL LLVM
http://reviews.llvm.org/D16806
Files:
llvm/trunk/lib/CodeGen/MachineCopyPropagation.cpp
Index: llvm/trunk/lib/CodeGen/MachineCopyPropagation.cpp
===================================================================
--- llvm/trunk/lib/CodeGen/MachineCopyPropagation.cpp
+++ llvm/trunk/lib/CodeGen/MachineCopyPropagation.cpp
@@ -182,7 +182,8 @@
}
}
- // 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 @@
// 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
// ...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16806.46788.patch
Type: text/x-patch
Size: 951 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160203/faf26023/attachment.bin>
More information about the llvm-commits
mailing list