diff options
author | Bill Wendling <isanbard@gmail.com> | 2010-06-16 18:01:31 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2010-06-16 18:01:31 +0000 |
commit | 5b6de7032dccbde9105d1037f315b1d08bfaf339 (patch) | |
tree | b84daa1fd3fa761322b08475dab04a0bd67a9886 /lib/CodeGen/MachineSink.cpp | |
parent | 35932906e58ac539881fd764ac858dc0f28fa31a (diff) | |
download | external_llvm-5b6de7032dccbde9105d1037f315b1d08bfaf339.tar.gz external_llvm-5b6de7032dccbde9105d1037f315b1d08bfaf339.tar.bz2 external_llvm-5b6de7032dccbde9105d1037f315b1d08bfaf339.zip |
Improve comment to include that the use of a preg is also verboten in this situation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106119 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineSink.cpp')
-rw-r--r-- | lib/CodeGen/MachineSink.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/CodeGen/MachineSink.cpp b/lib/CodeGen/MachineSink.cpp index 61334fc179..e2152d43a8 100644 --- a/lib/CodeGen/MachineSink.cpp +++ b/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; |