This function has been reduced to an identity function for some time.
return RegMasks.get(Register::stackSlot2Index(R));
}
- RegisterRef normalize(RegisterRef RR) const;
+ LLVM_ATTRIBUTE_DEPRECATED(RegisterRef normalize(RegisterRef RR),
+ "This function is now an identity function");
+ RegisterRef normalize(RegisterRef RR) const {
+ return RR;
+ }
bool alias(RegisterRef RA, RegisterRef RB) const {
if (!isRegMaskId(RA.Reg))
}
}
-RegisterRef PhysicalRegisterInfo::normalize(RegisterRef RR) const {
- return RR;
-}
-
std::set<RegisterId> PhysicalRegisterInfo::getAliasSet(RegisterId Reg) const {
// Do not include RR in the alias set.
std::set<RegisterId> AS;
for (NodeAddr<DefNode *> DA : SA.Addr->members_if(DFG->IsDef, *DFG)) {
LLVM_DEBUG(dbgs() << "\t\t[DefNode]: "
<< Print<NodeAddr<DefNode *>>(DA, *DFG) << "\n");
- RegisterRef DR = DFG->getPRI().normalize(DA.Addr->getRegRef(*DFG));
+ RegisterRef DR = DA.Addr->getRegRef(*DFG);
auto UseSet = LV->getAllReachedUses(DR, DA);
// Use RDF to find all the uses of `Def`
rdf::NodeSet Uses;
- RegisterRef DefReg = DFG.getPRI().normalize(Def.Addr->getRegRef(DFG));
+ RegisterRef DefReg = Def.Addr->getRegRef(DFG);
for (auto UseID : L.getAllReachedUses(DefReg, Def)) {
auto Use = DFG.addr<UseNode *>(UseID);
if (Use.Addr->getFlags() & NodeAttrs::PhiRef) { // phi node