Skip to content

Commit 3119a3a

Browse files
committed
Prevent auto-vectorization of scalar tail
1 parent c255186 commit 3119a3a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stl/src/vector_algorithms.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3363,6 +3363,7 @@ namespace {
33633363
_Advance_bytes(_First, sizeof(_Ty));
33643364
}
33653365

3366+
#pragma loop(no_vector)
33663367
for (auto _Ptr = static_cast<const _Ty*>(_First); _Ptr != _Last; ++_Ptr) {
33673368
if constexpr ((_Mode & _Mode_min) != 0) {
33683369
if (*_Ptr < _Cur_min_val) {

0 commit comments

Comments
 (0)