@@ -366,7 +366,7 @@ void ScopDetection::detect(Function &F) {
366
366
367
367
// Prune non-profitable regions.
368
368
for (auto &DIt : DetectionContextMap) {
369
- DetectionContext &DC = *DIt.getSecond (). get () ;
369
+ DetectionContext &DC = *DIt.getSecond ();
370
370
if (DC.Log .hasErrors ())
371
371
continue ;
372
372
if (!ValidRegions.count (&DC.CurRegion ))
@@ -431,7 +431,7 @@ bool ScopDetection::isMaxRegionInScop(const Region &R, bool Verify) {
431
431
Entry = std::make_unique<DetectionContext>(const_cast <Region &>(R), AA,
432
432
/* Verifying=*/ false );
433
433
434
- return isValidRegion (*Entry. get () );
434
+ return isValidRegion (*Entry);
435
435
}
436
436
437
437
return true ;
@@ -1496,7 +1496,7 @@ Region *ScopDetection::expandRegion(Region &R) {
1496
1496
std::unique_ptr<DetectionContext> &Entry = DetectionContextMap[P];
1497
1497
Entry = std::make_unique<DetectionContext>(*ExpandedRegion, AA,
1498
1498
/* Verifying=*/ false );
1499
- DetectionContext &Context = *Entry. get () ;
1499
+ DetectionContext &Context = *Entry;
1500
1500
1501
1501
POLLY_DEBUG (dbgs () << " \t\t Trying " << ExpandedRegion->getNameStr ()
1502
1502
<< " \n " );
@@ -1554,7 +1554,7 @@ static bool regionWithoutLoops(Region &R, LoopInfo &LI) {
1554
1554
void ScopDetection::removeCachedResultsRecursively (const Region &R) {
1555
1555
for (auto &SubRegion : R) {
1556
1556
if (ValidRegions.count (SubRegion.get ())) {
1557
- removeCachedResults (*SubRegion. get () );
1557
+ removeCachedResults (*SubRegion);
1558
1558
} else
1559
1559
removeCachedResultsRecursively (*SubRegion);
1560
1560
}
@@ -1568,7 +1568,7 @@ void ScopDetection::findScops(Region &R) {
1568
1568
std::unique_ptr<DetectionContext> &Entry =
1569
1569
DetectionContextMap[getBBPairForRegion (&R)];
1570
1570
Entry = std::make_unique<DetectionContext>(R, AA, /* Verifying=*/ false );
1571
- DetectionContext &Context = *Entry. get () ;
1571
+ DetectionContext &Context = *Entry;
1572
1572
1573
1573
bool DidBailout = true ;
1574
1574
if (!PollyProcessUnprofitable && regionWithoutLoops (R, LI))
@@ -1834,7 +1834,7 @@ void ScopDetection::printLocations(Function &F) {
1834
1834
1835
1835
void ScopDetection::emitMissedRemarks (const Function &F) {
1836
1836
for (auto &DIt : DetectionContextMap) {
1837
- DetectionContext &DC = *DIt.getSecond (). get () ;
1837
+ DetectionContext &DC = *DIt.getSecond ();
1838
1838
if (DC.Log .hasErrors ())
1839
1839
emitRejectionRemarks (DIt.getFirst (), DC.Log , ORE);
1840
1840
}
0 commit comments