aboutsummaryrefslogtreecommitdiff
path: root/libcxx/include/__algorithm/equal.h
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2021-06-05 10:49:51 +0200
committerNikita Popov <nikita.ppv@gmail.com>2021-06-07 21:08:42 +0200
commit8fdd7c2ff16da370e28ef1b22e400d57a541484f (patch)
treeca339a4206602a2273fb4c7dbb15729eb85264cb /libcxx/include/__algorithm/equal.h
parentd70e1f12765fd6bb644ffb561dff9a31c522308e (diff)
downloadllvm-8fdd7c2ff16da370e28ef1b22e400d57a541484f.zip
llvm-8fdd7c2ff16da370e28ef1b22e400d57a541484f.tar.gz
llvm-8fdd7c2ff16da370e28ef1b22e400d57a541484f.tar.bz2
[LoopUnroll] Clamp unroll count to MaxTripCount
Unrolling with more iterations than MaxTripCount is pointless, as those iterations can never be executed. As such, we clamp ULO.Count to MaxTripCount if it is known. This means we no longer need to consider iterations after MaxTripCount for exit folding, and the CompletelyUnroll flag becomes independent of ULO.TripCount. Differential Revision: https://reviews.llvm.org/D103748
Diffstat (limited to 'libcxx/include/__algorithm/equal.h')
0 files changed, 0 insertions, 0 deletions