Skip to content

Commit 2a89a72

Browse files
committed
refs llvm#2056 COPY生成でliveinを意識するように変更
1 parent 197484d commit 2a89a72

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

llvm/lib/CodeGen/SwplLoopDataExtraction.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,14 @@ static MachineOperand* used_reg(MachineInstr &phi) {
538538
return nullptr;
539539
}
540540

541+
if (def_op->getParent()->getParent()!=phi.getParent()) {
542+
if (SWPipeliner::isDebugOutput()) {
543+
dbgs() << "DEBUG(used_reg): own_r is livein!\n";
544+
}
545+
return nullptr;
546+
547+
}
548+
541549
auto *defMI = def_op->getParent();
542550
unsigned use_tied_ix;
543551
bool t = defMI->isRegTiedToUseOperand(defMI->getOperandNo(def_op), &use_tied_ix);

0 commit comments

Comments
 (0)