forked from OSchip/llvm-project
[CodeGen] Remove restrictRef (NFC)
The last use was removed on Apr 14, 2017 in commit
4fe9d6c640
.
This commit is contained in:
parent
0cb33551ec
commit
34ff78c5cf
|
@ -749,7 +749,6 @@ namespace rdf {
|
|||
|
||||
RegisterRef makeRegRef(unsigned Reg, unsigned Sub) const;
|
||||
RegisterRef makeRegRef(const MachineOperand &Op) const;
|
||||
RegisterRef restrictRef(RegisterRef AR, RegisterRef BR) const;
|
||||
|
||||
NodeAddr<RefNode*> getNextRelated(NodeAddr<InstrNode*> IA,
|
||||
NodeAddr<RefNode*> RA) const;
|
||||
|
|
|
@ -977,18 +977,6 @@ RegisterRef DataFlowGraph::makeRegRef(const MachineOperand &Op) const {
|
|||
return RegisterRef(PRI.getRegMaskId(Op.getRegMask()), LaneBitmask::getAll());
|
||||
}
|
||||
|
||||
RegisterRef DataFlowGraph::restrictRef(RegisterRef AR, RegisterRef BR) const {
|
||||
if (AR.Reg == BR.Reg) {
|
||||
LaneBitmask M = AR.Mask & BR.Mask;
|
||||
return M.any() ? RegisterRef(AR.Reg, M) : RegisterRef();
|
||||
}
|
||||
// This isn't strictly correct, because the overlap may happen in the
|
||||
// part masked out.
|
||||
if (PRI.alias(AR, BR))
|
||||
return AR;
|
||||
return RegisterRef();
|
||||
}
|
||||
|
||||
// For each stack in the map DefM, push the delimiter for block B on it.
|
||||
void DataFlowGraph::markBlock(NodeId B, DefStackMap &DefM) {
|
||||
// Push block delimiters.
|
||||
|
|
Loading…
Reference in New Issue