Skip to content

Commit 9df153b

Browse files
authored
[LV] Remove unused requiresScalarEpilogue function. nfc (#135341)
1 parent 58b5df0 commit 9df153b

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1373,21 +1373,6 @@ class LoopVectorizationCostModel {
13731373
return false;
13741374
}
13751375

1376-
/// Returns true if we're required to use a scalar epilogue for at least
1377-
/// the final iteration of the original loop for all VFs in \p Range.
1378-
/// A scalar epilogue must either be required for all VFs in \p Range or for
1379-
/// none.
1380-
bool requiresScalarEpilogue(VFRange Range) const {
1381-
auto RequiresScalarEpilogue = [this](ElementCount VF) {
1382-
return requiresScalarEpilogue(VF.isVector());
1383-
};
1384-
bool IsRequired = all_of(Range, RequiresScalarEpilogue);
1385-
assert(
1386-
(IsRequired || none_of(Range, RequiresScalarEpilogue)) &&
1387-
"all VFs in range must agree on whether a scalar epilogue is required");
1388-
return IsRequired;
1389-
}
1390-
13911376
/// Returns true if a scalar epilogue is not allowed due to optsize or a
13921377
/// loop hint annotation.
13931378
bool isScalarEpilogueAllowed() const {

0 commit comments

Comments
 (0)