summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2010-06-16 18:01:31 +0000
committerBill Wendling <isanbard@gmail.com>2010-06-16 18:01:31 +0000
commitd71bd63600e9c33190f2c35bb5eef360f3990dbb (patch)
tree67c2ca8801cfa626b3632eae549b20b667e620cd /llvm/lib
parentb35e7b86598492acd2127a87c062474d262b3927 (diff)
downloadbcm5719-llvm-d71bd63600e9c33190f2c35bb5eef360f3990dbb.tar.gz
bcm5719-llvm-d71bd63600e9c33190f2c35bb5eef360f3990dbb.zip
Improve comment to include that the use of a preg is also verboten in this situation.
llvm-svn: 106119
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/MachineSink.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineSink.cpp b/llvm/lib/CodeGen/MachineSink.cpp
index 61334fc1790..e2152d43a86 100644
--- a/llvm/lib/CodeGen/MachineSink.cpp
+++ b/llvm/lib/CodeGen/MachineSink.cpp
@@ -282,9 +282,10 @@ bool MachineSinking::SinkInstruction(MachineInstr *MI, bool &SawStore) {
if (MI->getParent() == SuccToSinkTo)
return false;
- // If the instruction to move defines a dead physical register which is live
- // when leaving the basic block, don't move it because it could turn into a
- // "zombie" define of that preg. E.g., EFLAGS. (<rdar://problem/8030636>)
+ // If the instruction to move defines or uses a dead physical register which
+ // is live when leaving the basic block, don't move it because it could turn
+ // into a zombie define or misuse of that preg. E.g., EFLAGS.
+ // (<rdar://problem/8030636>)
for (unsigned I = 0, E = MI->getNumOperands(); I != E; ++I) {
const MachineOperand &MO = MI->getOperand(I);
if (!MO.isReg()) continue;
OpenPOWER on IntegriCloud