@@ -99,7 +99,7 @@ TEST_F(VPlanSlpTest, testSlpSimple_2) {
99
99
100
100
VPBlockBase *Entry = Plan->getEntry ()->getEntryBasicBlock ();
101
101
EXPECT_NE (nullptr , Entry->getSingleSuccessor ());
102
- VPBasicBlock *Body = Entry-> getSingleSuccessor ()->getEntryBasicBlock ();
102
+ VPBasicBlock *Body = Plan-> getVectorLoopRegion ()->getEntryBasicBlock ();
103
103
104
104
VPInstruction *Store1 = cast<VPInstruction>(&*std::next (Body->begin (), 12 ));
105
105
VPInstruction *Store2 = cast<VPInstruction>(&*std::next (Body->begin (), 14 ));
@@ -171,7 +171,7 @@ TEST_F(VPlanSlpTest, testSlpSimple_3) {
171
171
172
172
VPBlockBase *Entry = Plan->getEntry ()->getEntryBasicBlock ();
173
173
EXPECT_NE (nullptr , Entry->getSingleSuccessor ());
174
- VPBasicBlock *Body = Entry-> getSingleSuccessor ()->getEntryBasicBlock ();
174
+ VPBasicBlock *Body = Plan-> getVectorLoopRegion ()->getEntryBasicBlock ();
175
175
176
176
VPInstruction *Store1 = cast<VPInstruction>(&*std::next (Body->begin (), 12 ));
177
177
VPInstruction *Store2 = cast<VPInstruction>(&*std::next (Body->begin (), 14 ));
@@ -243,7 +243,7 @@ TEST_F(VPlanSlpTest, testSlpReuse_1) {
243
243
244
244
VPBlockBase *Entry = Plan->getEntry ()->getEntryBasicBlock ();
245
245
EXPECT_NE (nullptr , Entry->getSingleSuccessor ());
246
- VPBasicBlock *Body = Entry-> getSingleSuccessor ()->getEntryBasicBlock ();
246
+ VPBasicBlock *Body = Plan-> getVectorLoopRegion ()->getEntryBasicBlock ();
247
247
248
248
VPInstruction *Store1 = cast<VPInstruction>(&*std::next (Body->begin (), 8 ));
249
249
VPInstruction *Store2 = cast<VPInstruction>(&*std::next (Body->begin (), 10 ));
@@ -307,7 +307,7 @@ TEST_F(VPlanSlpTest, testSlpReuse_2) {
307
307
308
308
VPBlockBase *Entry = Plan->getEntry ()->getEntryBasicBlock ();
309
309
EXPECT_NE (nullptr , Entry->getSingleSuccessor ());
310
- VPBasicBlock *Body = Entry-> getSingleSuccessor ()->getEntryBasicBlock ();
310
+ VPBasicBlock *Body = Plan-> getVectorLoopRegion ()->getEntryBasicBlock ();
311
311
312
312
VPInstruction *Store1 = cast<VPInstruction>(&*std::next (Body->begin (), 5 ));
313
313
VPInstruction *Store2 = cast<VPInstruction>(&*std::next (Body->begin (), 10 ));
@@ -444,7 +444,7 @@ TEST_F(VPlanSlpTest, testSlpReorder_1) {
444
444
445
445
VPBlockBase *Entry = Plan->getEntry ()->getEntryBasicBlock ();
446
446
EXPECT_NE (nullptr , Entry->getSingleSuccessor ());
447
- VPBasicBlock *Body = Entry-> getSingleSuccessor ()->getEntryBasicBlock ();
447
+ VPBasicBlock *Body = Plan-> getVectorLoopRegion ()->getEntryBasicBlock ();
448
448
449
449
VPInstruction *Store1 = cast<VPInstruction>(&*std::next (Body->begin (), 24 ));
450
450
VPInstruction *Store2 = cast<VPInstruction>(&*std::next (Body->begin (), 26 ));
@@ -516,7 +516,7 @@ TEST_F(VPlanSlpTest, testSlpReorder_2) {
516
516
517
517
VPBlockBase *Entry = Plan->getEntry ()->getEntryBasicBlock ();
518
518
EXPECT_NE (nullptr , Entry->getSingleSuccessor ());
519
- VPBasicBlock *Body = Entry-> getSingleSuccessor ()->getEntryBasicBlock ();
519
+ VPBasicBlock *Body = Plan-> getVectorLoopRegion ()->getEntryBasicBlock ();
520
520
521
521
VPInstruction *Store1 = cast<VPInstruction>(&*std::next (Body->begin (), 24 ));
522
522
VPInstruction *Store2 = cast<VPInstruction>(&*std::next (Body->begin (), 26 ));
@@ -588,7 +588,7 @@ TEST_F(VPlanSlpTest, testSlpReorder_3) {
588
588
589
589
VPBlockBase *Entry = Plan->getEntry ()->getEntryBasicBlock ();
590
590
EXPECT_NE (nullptr , Entry->getSingleSuccessor ());
591
- VPBasicBlock *Body = Entry-> getSingleSuccessor ()->getEntryBasicBlock ();
591
+ VPBasicBlock *Body = Plan-> getVectorLoopRegion ()->getEntryBasicBlock ();
592
592
593
593
VPInstruction *Store1 = cast<VPInstruction>(&*std::next (Body->begin (), 24 ));
594
594
VPInstruction *Store2 = cast<VPInstruction>(&*std::next (Body->begin (), 26 ));
@@ -664,7 +664,7 @@ TEST_F(VPlanSlpTest, testSlpReorder_4) {
664
664
665
665
VPBlockBase *Entry = Plan->getEntry ()->getEntryBasicBlock ();
666
666
EXPECT_NE (nullptr , Entry->getSingleSuccessor ());
667
- VPBasicBlock *Body = Entry-> getSingleSuccessor ()->getEntryBasicBlock ();
667
+ VPBasicBlock *Body = Plan-> getVectorLoopRegion ()->getEntryBasicBlock ();
668
668
669
669
VPInstruction *Store1 = cast<VPInstruction>(&*std::next (Body->begin (), 24 ));
670
670
VPInstruction *Store2 = cast<VPInstruction>(&*std::next (Body->begin (), 26 ));
@@ -725,7 +725,7 @@ TEST_F(VPlanSlpTest, testInstrsInDifferentBBs) {
725
725
726
726
VPBlockBase *Entry = Plan->getEntry ()->getEntryBasicBlock ();
727
727
EXPECT_NE (nullptr , Entry->getSingleSuccessor ());
728
- VPBasicBlock *Body = Entry-> getSingleSuccessor ()->getEntryBasicBlock ();
728
+ VPBasicBlock *Body = Plan-> getVectorLoopRegion ()->getEntryBasicBlock ();
729
729
VPBasicBlock *BB2 = Body->getSingleSuccessor ()->getEntryBasicBlock ();
730
730
731
731
VPInstruction *Store1 = cast<VPInstruction>(&*std::next (BB2->begin (), 3 ));
@@ -788,7 +788,7 @@ TEST_F(VPlanSlpTest, testInstrsInDifferentBBs2) {
788
788
789
789
VPBlockBase *Entry = Plan->getEntry ()->getEntryBasicBlock ();
790
790
EXPECT_NE (nullptr , Entry->getSingleSuccessor ());
791
- VPBasicBlock *Body = Entry-> getSingleSuccessor ()->getEntryBasicBlock ();
791
+ VPBasicBlock *Body = Plan-> getVectorLoopRegion ()->getEntryBasicBlock ();
792
792
VPBasicBlock *BB2 = Body->getSingleSuccessor ()->getEntryBasicBlock ();
793
793
794
794
VPInstruction *Store1 = cast<VPInstruction>(&*std::next (BB2->begin (), 1 ));
@@ -848,7 +848,7 @@ TEST_F(VPlanSlpTest, testSlpAtomicLoad) {
848
848
849
849
VPBlockBase *Entry = Plan->getEntry ()->getEntryBasicBlock ();
850
850
EXPECT_NE (nullptr , Entry->getSingleSuccessor ());
851
- VPBasicBlock *Body = Entry-> getSingleSuccessor ()->getEntryBasicBlock ();
851
+ VPBasicBlock *Body = Plan-> getVectorLoopRegion ()->getEntryBasicBlock ();
852
852
853
853
VPInstruction *Store1 = cast<VPInstruction>(&*std::next (Body->begin (), 12 ));
854
854
VPInstruction *Store2 = cast<VPInstruction>(&*std::next (Body->begin (), 14 ));
@@ -907,7 +907,7 @@ TEST_F(VPlanSlpTest, testSlpAtomicStore) {
907
907
908
908
VPBlockBase *Entry = Plan->getEntry ()->getEntryBasicBlock ();
909
909
EXPECT_NE (nullptr , Entry->getSingleSuccessor ());
910
- VPBasicBlock *Body = Entry-> getSingleSuccessor ()->getEntryBasicBlock ();
910
+ VPBasicBlock *Body = Plan-> getVectorLoopRegion ()->getEntryBasicBlock ();
911
911
912
912
VPInstruction *Store1 = cast<VPInstruction>(&*std::next (Body->begin (), 12 ));
913
913
VPInstruction *Store2 = cast<VPInstruction>(&*std::next (Body->begin (), 14 ));
0 commit comments