@@ -688,7 +688,6 @@ class EscapeAnalysis : public BottomUpIPAnalysis {
688
688
CGNode *FromMergeTarget = From->getMergeTarget ();
689
689
CGNode *ToMergeTarget = To->getMergeTarget ();
690
690
if (FromMergeTarget != ToMergeTarget) {
691
- ToMergeTarget->mergeProperties (FromMergeTarget);
692
691
FromMergeTarget->mergeTo = ToMergeTarget;
693
692
ToMerge.push_back (FromMergeTarget);
694
693
}
@@ -722,15 +721,12 @@ class EscapeAnalysis : public BottomUpIPAnalysis {
722
721
}
723
722
}
724
723
725
- // Helper for getNode and getValueContent.
726
- CGNode *getOrCreateNode (ValueBase *V, PointerKind pointerKind);
727
-
728
724
// / Gets or creates a node for a value \p V.
729
725
// / If V is a projection(-path) then the base of the projection(-path) is
730
726
// / taken. This means the node is always created for the "outermost" value
731
727
// / where V is contained.
732
- // / Returns null, if V is not a "pointer".
733
- CGNode *getNode (ValueBase *V, bool createIfNeeded = true );
728
+ // / Returns null, if V (or its base value) is not a "pointer".
729
+ CGNode *getNode (SILValue V );
734
730
735
731
// Helper for getValueContent to create and return a content node with the
736
732
// given \p isInterior and \p hasReferenceOnly flags. \p addrNode
@@ -781,15 +777,6 @@ class EscapeAnalysis : public BottomUpIPAnalysis {
781
777
return ReturnNode;
782
778
}
783
779
784
- // / Returns the node of the "exact" value \p V (no projections are skipped)
785
- // / if one exists.
786
- CGNode *lookupNode (ValueBase *V) {
787
- CGNode *Node = Values2Nodes.lookup (V);
788
- if (Node)
789
- return Node->getMergeTarget ();
790
- return nullptr ;
791
- }
792
-
793
780
// / Re-uses a node for another SIL value.
794
781
void setNode (ValueBase *V, CGNode *Node) {
795
782
assert (Values2Nodes.find (V) == Values2Nodes.end ());
@@ -872,13 +859,6 @@ class EscapeAnalysis : public BottomUpIPAnalysis {
872
859
bool forwardTraverseDefer (CGNode *startNode, CGNodeVisitor &&visitor);
873
860
874
861
public:
875
- // / Gets or creates a node for a value \p V.
876
- // / If V is a projection(-path) then the base of the projection(-path) is
877
- // / taken. This means the node is always created for the "outermost" value
878
- // / where V is contained.
879
- // / Returns null, if V is not a "pointer".
880
- CGNode *getNodeOrNull (ValueBase *V) { return getNode (V, false ); }
881
-
882
862
// / Get the content node pointed to by \p ptrVal.
883
863
// /
884
864
// / If \p ptrVal cannot be mapped to a node, return nullptr.
0 commit comments