[RDF] Really remove remaining uses of PhysicalRegisterInfo::normalize
This commit is contained in:
parent
f0f467aeec
commit
4b25f67299
@ -984,11 +984,6 @@ RegisterRef DataFlowGraph::restrictRef(RegisterRef AR, RegisterRef BR) const {
|
||||
LaneBitmask M = AR.Mask & BR.Mask;
|
||||
return M.any() ? RegisterRef(AR.Reg, M) : RegisterRef();
|
||||
}
|
||||
#ifndef NDEBUG
|
||||
// RegisterRef NAR = PRI.normalize(AR);
|
||||
// RegisterRef NBR = PRI.normalize(BR);
|
||||
// assert(NAR.Reg != NBR.Reg);
|
||||
#endif
|
||||
// This isn't strictly correct, because the overlap may happen in the
|
||||
// part masked out.
|
||||
if (PRI.alias(AR, BR))
|
||||
|
||||
@ -514,7 +514,7 @@ void Liveness::computePhiInfo() {
|
||||
NodeAddr<UseNode*> A = DFG.addr<UseNode*>(UN);
|
||||
uint16_t F = A.Addr->getFlags();
|
||||
if ((F & (NodeAttrs::Undef | NodeAttrs::PhiRef)) == 0) {
|
||||
RegisterRef R = PRI.normalize(A.Addr->getRegRef(DFG));
|
||||
RegisterRef R = A.Addr->getRegRef(DFG);
|
||||
RealUses[R.Reg].insert({A.Id,R.Mask});
|
||||
}
|
||||
UN = A.Addr->getSibling();
|
||||
@ -659,7 +659,7 @@ void Liveness::computePhiInfo() {
|
||||
|
||||
for (NodeAddr<UseNode*> UA : PUs) {
|
||||
std::map<NodeId,RegisterAggr> &PUM = PhiUp[UA.Id];
|
||||
RegisterRef UR = PRI.normalize(UA.Addr->getRegRef(DFG));
|
||||
RegisterRef UR = UA.Addr->getRegRef(DFG);
|
||||
for (const std::pair<const NodeId, RegisterAggr> &P : PUM) {
|
||||
bool Changed = false;
|
||||
const RegisterAggr &MidDefs = P.second;
|
||||
@ -1113,7 +1113,7 @@ void Liveness::traverse(MachineBasicBlock *B, RefMap &LiveIn) {
|
||||
for (NodeAddr<UseNode*> UA : IA.Addr->members_if(DFG.IsUse, DFG)) {
|
||||
if (UA.Addr->getFlags() & NodeAttrs::Undef)
|
||||
continue;
|
||||
RegisterRef RR = PRI.normalize(UA.Addr->getRegRef(DFG));
|
||||
RegisterRef RR = UA.Addr->getRegRef(DFG);
|
||||
for (NodeAddr<DefNode*> D : getAllReachingDefs(UA))
|
||||
if (getBlockWithRef(D.Id) != B)
|
||||
LiveIn[RR.Reg].insert({D.Id,RR.Mask});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user