Lines Matching refs:RM
111 bool LiveRangeEdit::canRematerializeAt(Remat &RM, in canRematerializeAt() argument
118 if (!remattable_.count(RM.ParentVNI)) in canRematerializeAt()
123 if (RM.OrigMI) in canRematerializeAt()
124 DefIdx = lis.getInstructionIndex(RM.OrigMI); in canRematerializeAt()
126 DefIdx = RM.ParentVNI->def; in canRematerializeAt()
127 RM.OrigMI = lis.getInstructionFromIndex(DefIdx); in canRematerializeAt()
128 assert(RM.OrigMI && "No defining instruction for remattable value"); in canRematerializeAt()
132 if (cheapAsAMove && !RM.OrigMI->getDesc().isAsCheapAsAMove()) in canRematerializeAt()
136 if (!allUsesAvailableAt(RM.OrigMI, DefIdx, UseIdx, lis)) in canRematerializeAt()
145 const Remat &RM, in rematerializeAt() argument
150 assert(RM.OrigMI && "Invalid remat"); in rematerializeAt()
151 tii.reMaterialize(MBB, MI, DestReg, 0, RM.OrigMI, tri); in rematerializeAt()
152 rematted_.insert(RM.ParentVNI); in rematerializeAt()