Skip to content

Commit

Permalink
レジスタ割り付けバグ修正 llvm#1792 liveoutレジスタが正しく認識できない
Browse files Browse the repository at this point in the history
  • Loading branch information
kitano-metro committed Feb 16, 2023
1 parent a3f3215 commit e661b1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/CodeGen/SWPipeliner.h
Expand Up @@ -222,7 +222,7 @@ class SwplLoop {
/// \param [in] newReg 追加するRegister
void addOrgReg2NewReg(Register orgReg, Register newReg) { OrgReg2NewReg[orgReg] = newReg; };
/// SwplLoop::Copies に要素を追加する
void addCopies(MachineInstr *copy) { getCopies().push_back(copy); }
void addCopies(MachineInstr *copy) { getCopies().push_back(copy); liveOuts.insert(copy->getOperand(0).getReg());}
/// SwplLoop::Regs に要素を追加する
void addRegs(SwplReg *reg) { getRegs().push_back(reg); }

Expand Down

0 comments on commit e661b1e

Please sign in to comment.