Skip to content

Commit

Permalink
[RDF] Remove unused variant of getNextShadow, NFC
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof Parzyszek committed Jun 14, 2023
1 parent b3bdfd3 commit 198d647
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion llvm/include/llvm/CodeGen/RDFGraph.h
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,6 @@ struct DataFlowGraph {

Ref getNextRelated(Instr IA, Ref RA) const;
Ref getNextShadow(Instr IA, Ref RA, bool Create);
Ref getNextShadow(Instr IA, Ref RA) const;

NodeList getRelatedRefs(Instr IA, Ref RA) const;

Expand Down
11 changes: 0 additions & 11 deletions llvm/lib/CodeGen/RDFGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1194,17 +1194,6 @@ Ref DataFlowGraph::getNextShadow(Instr IA, Ref RA, bool Create) {
return NA;
}

// Get the next shadow node in IA corresponding to RA. Return null-address
// if such a node does not exist.
Ref DataFlowGraph::getNextShadow(Instr IA, Ref RA) const {
assert(IA.Id != 0 && RA.Id != 0);
uint16_t Flags = RA.Addr->getFlags() | NodeAttrs::Shadow;
auto IsShadow = [Flags](Ref TA) -> bool {
return TA.Addr->getFlags() == Flags;
};
return locateNextRef(IA, RA, IsShadow).second;
}

// Create a new statement node in the block node BA that corresponds to
// the machine instruction MI.
void DataFlowGraph::buildStmt(Block BA, MachineInstr &In) {
Expand Down

0 comments on commit 198d647

Please sign in to comment.