@@ -1830,7 +1830,7 @@ class BoUpSLP {
1830
1830
/// Returns the type/is-signed info for the root node in the graph without
1831
1831
/// casting.
1832
1832
std::optional<std::pair<Type *, bool>> getRootNodeTypeWithNoCast() const {
1833
- const TreeEntry &Root = *VectorizableTree.front().get() ;
1833
+ const TreeEntry &Root = *VectorizableTree.front();
1834
1834
if (Root.State != TreeEntry::Vectorize || Root.isAltShuffle() ||
1835
1835
!Root.Scalars.front()->getType()->isIntegerTy())
1836
1836
return std::nullopt;
@@ -7507,7 +7507,7 @@ void BoUpSLP::reorderBottomToTop(bool IgnoreReorder) {
7507
7507
assert(Data.first->CombinedEntriesWithIndices.size() == 2 &&
7508
7508
"Expected exactly 2 entries.");
7509
7509
for (const auto &P : Data.first->CombinedEntriesWithIndices) {
7510
- TreeEntry &OpTE = *VectorizableTree[P.first].get() ;
7510
+ TreeEntry &OpTE = *VectorizableTree[P.first];
7511
7511
OrdersType Order = OpTE.ReorderIndices;
7512
7512
if (Order.empty() || !OpTE.ReuseShuffleIndices.empty()) {
7513
7513
if (!OpTE.isGather() && OpTE.ReuseShuffleIndices.empty())
@@ -17464,13 +17464,13 @@ Value *BoUpSLP::vectorizeTree(TreeEntry *E) {
17464
17464
"Expected exactly 2 combined entries.");
17465
17465
setInsertPointAfterBundle(E);
17466
17466
TreeEntry &OpTE1 =
17467
- *VectorizableTree[E->CombinedEntriesWithIndices.front().first].get() ;
17467
+ *VectorizableTree[E->CombinedEntriesWithIndices.front().first];
17468
17468
assert(OpTE1.isSame(
17469
17469
ArrayRef(E->Scalars).take_front(OpTE1.getVectorFactor())) &&
17470
17470
"Expected same first part of scalars.");
17471
17471
Value *Op1 = vectorizeTree(&OpTE1);
17472
17472
TreeEntry &OpTE2 =
17473
- *VectorizableTree[E->CombinedEntriesWithIndices.back().first].get() ;
17473
+ *VectorizableTree[E->CombinedEntriesWithIndices.back().first];
17474
17474
assert(
17475
17475
OpTE2.isSame(ArrayRef(E->Scalars).take_back(OpTE2.getVectorFactor())) &&
17476
17476
"Expected same second part of scalars.");
@@ -19325,9 +19325,8 @@ BoUpSLP::BlockScheduling::buildBundle(ArrayRef<Value *> VL) {
19325
19325
.first->getSecond()
19326
19326
.push_back(BundlePtr.get());
19327
19327
}
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;
19331
19330
}
19332
19331
19333
19332
// Groups the instructions to a bundle (which is then a single scheduling entity)
0 commit comments