mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-15 06:25:53 +00:00
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
This commit is contained in:
@@ -282,9 +282,10 @@ bool MachineSinking::SinkInstruction(MachineInstr *MI, bool &SawStore) {
|
|||||||
if (MI->getParent() == SuccToSinkTo)
|
if (MI->getParent() == SuccToSinkTo)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// If the instruction to move defines a dead physical register which is live
|
// If the instruction to move defines or uses a dead physical register which
|
||||||
// when leaving the basic block, don't move it because it could turn into a
|
// is live when leaving the basic block, don't move it because it could turn
|
||||||
// "zombie" define of that preg. E.g., EFLAGS. (<rdar://problem/8030636>)
|
// 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) {
|
for (unsigned I = 0, E = MI->getNumOperands(); I != E; ++I) {
|
||||||
const MachineOperand &MO = MI->getOperand(I);
|
const MachineOperand &MO = MI->getOperand(I);
|
||||||
if (!MO.isReg()) continue;
|
if (!MO.isReg()) continue;
|
||||||
|
Reference in New Issue
Block a user