[llvm] 198d647 - [RDF] Remove unused variant of getNextShadow, NFC
Krzysztof Parzyszek via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 14 09:12:31 PDT 2023
Author: Krzysztof Parzyszek
Date: 2023-06-14T09:12:08-07:00
New Revision: 198d647fad759b5320ec528a33565c3667c69b65
URL: https://github.com/llvm/llvm-project/commit/198d647fad759b5320ec528a33565c3667c69b65
DIFF: https://github.com/llvm/llvm-project/commit/198d647fad759b5320ec528a33565c3667c69b65.diff
LOG: [RDF] Remove unused variant of getNextShadow, NFC
Added:
Modified:
llvm/include/llvm/CodeGen/RDFGraph.h
llvm/lib/CodeGen/RDFGraph.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/CodeGen/RDFGraph.h b/llvm/include/llvm/CodeGen/RDFGraph.h
index e865bc89bbfe3..b2d6d16e2d5bb 100644
--- a/llvm/include/llvm/CodeGen/RDFGraph.h
+++ b/llvm/include/llvm/CodeGen/RDFGraph.h
@@ -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;
diff --git a/llvm/lib/CodeGen/RDFGraph.cpp b/llvm/lib/CodeGen/RDFGraph.cpp
index 013cced603506..9dd3a9d9ac7de 100644
--- a/llvm/lib/CodeGen/RDFGraph.cpp
+++ b/llvm/lib/CodeGen/RDFGraph.cpp
@@ -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) {
More information about the llvm-commits
mailing list