| commit | 23ce61b66334b78ce7a0dd48c24fbf407ca12d8b | [log] [tgz] |
|---|---|---|
| author | Evgeny Stupachenko <evstupac@gmail.com> | Wed Apr 27 03:04:54 2016 +0000 |
| committer | Evgeny Stupachenko <evstupac@gmail.com> | Wed Apr 27 03:04:54 2016 +0000 |
| tree | efea78cc6444d7653d38307f6734f96e4b3f412f | |
| parent | c67651dd70b740765cdb809aa0c87236a7eedc1a [diff] |
The patch fixes PR27392. Summary: It is incorrect to compare TripCount (which is BECount + 1) with extraiters (or Count) to check if we should enter unrolled loop or not, because TripCount can potentially overflow (when BECount is max unsigned integer). While comparing BECount with (Count - 1) is overflow safe and therefore correct. Reviewer: hfinkel Differential Revision: http://reviews.llvm.org/D19256 From: Evgeny Stupachenko <evstupac@gmail.com> llvm-svn: 267662