@@ -46,7 +46,7 @@ class RegAllocDevelopmentFeaturesTest : public ::Test {
4646protected:
4747 SmallVector<LRStartEndInfo>
4848 setupOverlapProblem (const SmallVectorImpl<LRPosInfoIndexes> &Segments,
49- ilist <IndexListEntry> &IndexList) {
49+ simple_ilist <IndexListEntry> &IndexList) {
5050 SmallVector<LRStartEndInfo> PositionsToReturn;
5151 PositionsToReturn.reserve (Segments.size ());
5252 for (auto CurrentPosIndexInfo : Segments) {
@@ -61,7 +61,7 @@ class RegAllocDevelopmentFeaturesTest : public ::Test {
6161 Allocator.Allocate (sizeof (IndexListEntry), alignof (IndexListEntry)));
6262 auto *CurrentListEntry =
6363 new (CurrentLEMem) IndexListEntry (nullptr , CurrentIndex);
64- IndexList.push_back (CurrentListEntry);
64+ IndexList.push_back (* CurrentListEntry);
6565 for (size_t CurrentPosInfoIndex = 0 ;
6666 CurrentPosInfoIndex < Segments.size (); ++CurrentPosInfoIndex) {
6767 if ((CurrentIndex / SlotIndex::InstrDist) ==
@@ -107,7 +107,7 @@ class RegAllocDevelopmentFeaturesTest : public ::Test {
107107 }
108108
109109 void runOverlapTest (SmallVectorImpl<LRPosInfoIndexes> &OverlapSetup) {
110- ilist <IndexListEntry> IndexList;
110+ simple_ilist <IndexListEntry> IndexList;
111111 auto OverlapProblem = setupOverlapProblem (OverlapSetup, IndexList);
112112 NoInferenceModelRunner ModelRunner = setupModelRunner ();
113113 size_t MaxIndex = 0 ;
@@ -131,7 +131,7 @@ class RegAllocDevelopmentFeaturesTest : public ::Test {
131131 NumberOfInterferences * ModelMaxSupportedInstructionCount);
132132 ASSERT_THAT (MappingMatrix,
133133 ContainerEq (getExpectedMappingMatrix (OverlapSetup)));
134- IndexList.clearAndLeakNodesUnsafely ();
134+ IndexList.clear ();
135135 }
136136
137137 BumpPtrAllocator Allocator;
@@ -144,7 +144,7 @@ TEST_F(RegAllocDevelopmentFeaturesTest,
144144 SmallVector<LRPosInfoIndexes, 2 > OverlapSetup;
145145 OverlapSetup.push_back ({0 , 5 , 0 });
146146 OverlapSetup.push_back ({5 , 10 , 0 });
147- ilist <IndexListEntry> IndexList;
147+ simple_ilist <IndexListEntry> IndexList;
148148 auto OverlapProblem = setupOverlapProblem (OverlapSetup, IndexList);
149149 ASSERT_EQ (OverlapProblem[0 ].End .distance (OverlapProblem[1 ].End ),
150150 5 * SlotIndex::InstrDist);
@@ -154,7 +154,7 @@ TEST_F(RegAllocDevelopmentFeaturesTest,
154154TEST_F (RegAllocDevelopmentFeaturesTest, MetaSlotIndicesAreValid) {
155155 SmallVector<LRPosInfoIndexes, 1 > OverlapSetup;
156156 OverlapSetup.push_back ({0 , 10 , 0 });
157- ilist <IndexListEntry> IndexList;
157+ simple_ilist <IndexListEntry> IndexList;
158158 auto OverlapProblem = setupOverlapProblem (OverlapSetup, IndexList);
159159 ASSERT_TRUE (OverlapProblem[0 ].Begin .isValid ());
160160 ASSERT_TRUE (OverlapProblem[0 ].End .isValid ());
@@ -165,7 +165,7 @@ TEST_F(RegAllocDevelopmentFeaturesTest, MetaSlotIndicesAreValid) {
165165TEST_F (RegAllocDevelopmentFeaturesTest, InstructionOpcodesAreCorrect) {
166166 SmallVector<LRPosInfoIndexes, 1 > OverlapSetup;
167167 OverlapSetup.push_back ({0 , ModelMaxSupportedInstructionCount - 1 , 0 });
168- ilist <IndexListEntry> IndexList;
168+ simple_ilist <IndexListEntry> IndexList;
169169 auto OverlapProblem = setupOverlapProblem (OverlapSetup, IndexList);
170170 NoInferenceModelRunner ModelRunner = setupModelRunner ();
171171 SlotIndex LastIndex = OverlapProblem[0 ].End ;
@@ -247,7 +247,7 @@ TEST_F(RegAllocDevelopmentFeaturesTest, SingleMBBTest) {
247247TEST_F (RegAllocDevelopmentFeaturesTest, MBBFullTruncated) {
248248 SmallVector<LRPosInfoIndexes, 1 > OverlapSetup;
249249 OverlapSetup.push_back ({0 , ModelMaxSupportedInstructionCount - 1 , 0 });
250- ilist <IndexListEntry> IndexList;
250+ simple_ilist <IndexListEntry> IndexList;
251251 auto OverlapProblem = setupOverlapProblem (OverlapSetup, IndexList);
252252 NoInferenceModelRunner ModelRunner = setupModelRunner ();
253253 SlotIndex LastIndex = OverlapProblem[0 ].End ;
0 commit comments