diff options
| author | Dorit Nuzman <dorit.nuzman@intel.com> | 2017-11-05 16:53:15 +0000 |
|---|---|---|
| committer | Dorit Nuzman <dorit.nuzman@intel.com> | 2017-11-05 16:53:15 +0000 |
| commit | eb13dd3eac777d1b3cfcbf6d28840c2e0a66e892 (patch) | |
| tree | de5c6f419dce552984d3385b67f0b12356bcc458 /llvm/lib/CodeGen/GlobalISel/Localizer.cpp | |
| parent | 92403c12b5d81c6877e5fd037974eeb8b2075ec4 (diff) | |
| download | bcm5719-llvm-eb13dd3eac777d1b3cfcbf6d28840c2e0a66e892.tar.gz bcm5719-llvm-eb13dd3eac777d1b3cfcbf6d28840c2e0a66e892.zip | |
[LV/LAA] Avoid specializing a loop for stride=1 when this predicate implies a
single-iteration loop
This fixes PR34681. Avoid adding the "Stride == 1" predicate when we know that
Stride >= Trip-Count. Such a predicate will effectively optimize a single
or zero iteration loop, as Trip-Count <= Stride == 1.
Differential Revision: https://reviews.llvm.org/D38785
llvm-svn: 317438
Diffstat (limited to 'llvm/lib/CodeGen/GlobalISel/Localizer.cpp')
0 files changed, 0 insertions, 0 deletions

