summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineCopyPropagation.cpp
diff options
context:
space:
mode:
authorJun Bum Lim <junbuml@codeaurora.org>2016-02-03 15:56:27 +0000
committerJun Bum Lim <junbuml@codeaurora.org>2016-02-03 15:56:27 +0000
commit59df5e89c24918a7efb206c4454feecb6c52f43b (patch)
tree8cbf19aed120cf3d9fdf41ede7c890920a359926 /llvm/lib/CodeGen/MachineCopyPropagation.cpp
parent3b1a2dbffa6738ae3b929bfb6a596b189dd9f459 (diff)
downloadbcm5719-llvm-59df5e89c24918a7efb206c4454feecb6c52f43b.tar.gz
bcm5719-llvm-59df5e89c24918a7efb206c4454feecb6c52f43b.zip
[MachineCopyPropagation] Fix comment. NFC
Reviewers: MatzeB, qcolombet, jmolloy, mcrosier Subscribers: llvm-commits, mcrosier Differential Revision: http://reviews.llvm.org/D16806 llvm-svn: 259656
Diffstat (limited to 'llvm/lib/CodeGen/MachineCopyPropagation.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineCopyPropagation.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineCopyPropagation.cpp b/llvm/lib/CodeGen/MachineCopyPropagation.cpp
index a6863412132..117e1ebe3de 100644
--- a/llvm/lib/CodeGen/MachineCopyPropagation.cpp
+++ b/llvm/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<def> = copy %xmm2
// ...
OpenPOWER on IntegriCloud