Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6555,7 +6555,7 @@ void LoopVectorizationCostModel::collectValuesToIgnore() {
}

for (const auto &[_, Ops] : DeadInvariantStoreOps)
llvm::append_range(DeadOps, ArrayRef(Ops).drop_back());
llvm::append_range(DeadOps, drop_end(Ops));

// Mark ops that would be trivially dead and are only used by ignored
// instructions as free.
Expand Down Expand Up @@ -9097,7 +9097,7 @@ void LoopVectorizationPlanner::adjustRecipesForReductions(
// get folded to their non-phi operand, as the reduction recipe handles the
// condition directly.
VPSingleDefRecipe *PreviousLink = PhiR; // Aka Worklist[0].
for (VPSingleDefRecipe *CurrentLink : Worklist.getArrayRef().drop_front()) {
for (VPSingleDefRecipe *CurrentLink : drop_begin(Worklist)) {
if (auto *Blend = dyn_cast<VPBlendRecipe>(CurrentLink)) {
assert(Blend->getNumIncomingValues() == 2 &&
"Blend must have 2 incoming values");
Expand Down
Loading