@@ -55,14 +55,14 @@ class DGNode {
5555
5656public:
5757 DGNode (Instruction *I) : I(I), SubclassID(DGNodeID::DGNode) {
58- assert (!isMemDepCandidate (I) && " Expected Non-Mem instruction, " );
58+ assert (!isMemDepNodeCandidate (I) && " Expected Non-Mem instruction, " );
5959 }
6060 DGNode (const DGNode &Other) = delete ;
6161 virtual ~DGNode () = default ;
6262 // / \Returns true if this is before \p Other in program order.
6363 bool comesBefore (const DGNode *Other) { return I->comesBefore (Other->I ); }
6464 // / \Returns true if \p I is a memory dependency candidate instruction.
65- static bool isMemDepCandidate (Instruction *I) {
65+ static bool isMemDepNodeCandidate (Instruction *I) {
6666 AllocaInst *Alloca;
6767 return Utils::isMemDepCandidate (I) ||
6868 ((Alloca = dyn_cast<AllocaInst>(I)) &&
@@ -106,7 +106,7 @@ class MemDGNode final : public DGNode {
106106
107107public:
108108 MemDGNode (Instruction *I) : DGNode(I, DGNodeID::MemDGNode) {
109- assert (isMemDepCandidate (I) && " Expected Mem instruction!" );
109+ assert (isMemDepNodeCandidate (I) && " Expected Mem instruction!" );
110110 }
111111 static bool classof (const DGNode *Other) {
112112 return Other->SubclassID == DGNodeID::MemDGNode;
@@ -150,7 +150,7 @@ class DependencyGraph {
150150 DGNode *getOrCreateNode (Instruction *I) {
151151 auto [It, NotInMap] = InstrToNodeMap.try_emplace (I);
152152 if (NotInMap) {
153- if (DGNode::isMemDepCandidate (I))
153+ if (DGNode::isMemDepNodeCandidate (I))
154154 It->second = std::make_unique<MemDGNode>(I);
155155 else
156156 It->second = std::make_unique<DGNode>(I);
0 commit comments