@@ -1830,7 +1830,7 @@ class BoUpSLP {
18301830 /// Returns the type/is-signed info for the root node in the graph without
18311831 /// casting.
18321832 std::optional<std::pair<Type *, bool>> getRootNodeTypeWithNoCast() const {
1833- const TreeEntry &Root = *VectorizableTree.front().get() ;
1833+ const TreeEntry &Root = *VectorizableTree.front();
18341834 if (Root.State != TreeEntry::Vectorize || Root.isAltShuffle() ||
18351835 !Root.Scalars.front()->getType()->isIntegerTy())
18361836 return std::nullopt;
@@ -7507,7 +7507,7 @@ void BoUpSLP::reorderBottomToTop(bool IgnoreReorder) {
75077507 assert(Data.first->CombinedEntriesWithIndices.size() == 2 &&
75087508 "Expected exactly 2 entries.");
75097509 for (const auto &P : Data.first->CombinedEntriesWithIndices) {
7510- TreeEntry &OpTE = *VectorizableTree[P.first].get() ;
7510+ TreeEntry &OpTE = *VectorizableTree[P.first];
75117511 OrdersType Order = OpTE.ReorderIndices;
75127512 if (Order.empty() || !OpTE.ReuseShuffleIndices.empty()) {
75137513 if (!OpTE.isGather() && OpTE.ReuseShuffleIndices.empty())
@@ -17464,13 +17464,13 @@ Value *BoUpSLP::vectorizeTree(TreeEntry *E) {
1746417464 "Expected exactly 2 combined entries.");
1746517465 setInsertPointAfterBundle(E);
1746617466 TreeEntry &OpTE1 =
17467- *VectorizableTree[E->CombinedEntriesWithIndices.front().first].get() ;
17467+ *VectorizableTree[E->CombinedEntriesWithIndices.front().first];
1746817468 assert(OpTE1.isSame(
1746917469 ArrayRef(E->Scalars).take_front(OpTE1.getVectorFactor())) &&
1747017470 "Expected same first part of scalars.");
1747117471 Value *Op1 = vectorizeTree(&OpTE1);
1747217472 TreeEntry &OpTE2 =
17473- *VectorizableTree[E->CombinedEntriesWithIndices.back().first].get() ;
17473+ *VectorizableTree[E->CombinedEntriesWithIndices.back().first];
1747417474 assert(
1747517475 OpTE2.isSame(ArrayRef(E->Scalars).take_back(OpTE2.getVectorFactor())) &&
1747617476 "Expected same second part of scalars.");
@@ -19325,9 +19325,8 @@ BoUpSLP::BlockScheduling::buildBundle(ArrayRef<Value *> VL) {
1932519325 .first->getSecond()
1932619326 .push_back(BundlePtr.get());
1932719327 }
19328- assert(BundlePtr.get() && *BundlePtr.get() &&
19329- "Failed to find schedule bundle");
19330- return *BundlePtr.get();
19328+ assert(BundlePtr && *BundlePtr && "Failed to find schedule bundle");
19329+ return *BundlePtr;
1933119330}
1933219331
1933319332// Groups the instructions to a bundle (which is then a single scheduling entity)
0 commit comments