summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineSink.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-12-09 01:25:04 +0000
committerDevang Patel <dpatel@apple.com>2011-12-09 01:25:04 +0000
commit706574a994198201698a731f8fcb3c912dc1cc4c (patch)
tree108bea64bf1b662d481603d0193465694a40284c /llvm/lib/CodeGen/MachineSink.cpp
parent2f9a0e1b8644ba10cca6c00a0e2ed1ffebddfc26 (diff)
downloadbcm5719-llvm-706574a994198201698a731f8fcb3c912dc1cc4c.tar.gz
bcm5719-llvm-706574a994198201698a731f8fcb3c912dc1cc4c.zip
Fix comment.
llvm-svn: 146226
Diffstat (limited to 'llvm/lib/CodeGen/MachineSink.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineSink.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineSink.cpp b/llvm/lib/CodeGen/MachineSink.cpp
index c4a533b09b4..3837f6d888d 100644
--- a/llvm/lib/CodeGen/MachineSink.cpp
+++ b/llvm/lib/CodeGen/MachineSink.cpp
@@ -149,11 +149,10 @@ MachineSinking::AllUsesDominatedByBlock(unsigned Reg,
assert(TargetRegisterInfo::isVirtualRegister(Reg) &&
"Only makes sense for vregs");
+ // Ignore debug uses because debug info doesn't affect the code.
if (MRI->use_nodbg_empty(Reg))
return true;
- // Ignoring debug uses because debug info doesn't affect the code.
-
// BreakPHIEdge is true if all the uses are in the successor MBB being sunken
// into and they are all PHI nodes. In this case, machine-sink must break
// the critical edge first. e.g.
OpenPOWER on IntegriCloud