Lines Matching refs:IA

71 void DeadCodeElimination::scanInstr(NodeAddr<InstrNode*> IA,  in scanInstr()  argument
73 if (!DFG.IsCode<NodeAttrs::Stmt>(IA)) in scanInstr()
75 if (!isLiveInstr(NodeAddr<StmtNode*>(IA).Addr->getCode())) in scanInstr()
77 for (NodeAddr<RefNode*> RA : IA.Addr->members(DFG)) { in scanInstr()
85 NodeAddr<InstrNode*> IA = DA.Addr->getOwner(DFG); in processDef() local
86 for (NodeAddr<UseNode*> UA : IA.Addr->members_if(DFG.IsUse, DFG)) { in processDef()
90 for (NodeAddr<DefNode*> TA : DFG.getRelatedRefs(IA, DA)) in processDef()
118 for (NodeAddr<InstrNode*> IA : BA.Addr->members(DFG)) in collect()
119 scanInstr(IA, WorkQ); in collect()
139 auto IsDead = [this] (NodeAddr<InstrNode*> IA) -> bool { in collect() argument
140 for (NodeAddr<DefNode*> DA : IA.Addr->members_if(DFG.IsDef, DFG)) in collect()
147 for (NodeAddr<InstrNode*> IA : BA.Addr->members(DFG)) { in collect()
148 for (NodeAddr<RefNode*> RA : IA.Addr->members(DFG)) in collect()
151 if (DFG.IsCode<NodeAttrs::Stmt>(IA)) in collect()
152 if (isLiveInstr(NodeAddr<StmtNode*>(IA).Addr->getCode())) in collect()
154 if (IsDead(IA)) { in collect()
155 DeadInstrs.insert(IA.Id); in collect()
157 dbgs() << "Dead instr: " << PrintNode<InstrNode*>(IA, DFG) << "\n"; in collect()
220 for (NodeAddr<InstrNode*> IA : DINs) { in erase()
221 NodeAddr<BlockNode*> BA = IA.Addr->getOwner(DFG); in erase()
222 BA.Addr->removeMember(IA, DFG); in erase()
223 if (!DFG.IsCode<NodeAttrs::Stmt>(IA)) in erase()
226 MachineInstr *MI = NodeAddr<StmtNode*>(IA).Addr->getCode(); in erase()