From 9ed60626e807a689dc5c0f44e7bf61ddf31f6465 Mon Sep 17 00:00:00 2001 From: Jun Bum Lim Date: Wed, 3 Feb 2016 15:56:27 +0000 Subject: [PATCH] [MachineCopyPropagation] Fix comment. NFC Reviewers: MatzeB, qcolombet, jmolloy, mcrosier Subscribers: llvm-commits, mcrosier Differential Revision: http://reviews.llvm.org/D16806 llvm-svn: 259656 --- lib/CodeGen/MachineCopyPropagation.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/CodeGen/MachineCopyPropagation.cpp b/lib/CodeGen/MachineCopyPropagation.cpp index a6863412132..117e1ebe3de 100644 --- a/lib/CodeGen/MachineCopyPropagation.cpp +++ b/lib/CodeGen/MachineCopyPropagation.cpp @@ -182,7 +182,8 @@ bool MachineCopyPropagation::CopyPropagateBlock(MachineBasicBlock &MBB) { } } - // 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::CopyPropagateBlock(MachineBasicBlock &MBB) { // 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 = copy %xmm2 // ...