Address review comment from D97219 (follow up to 8051156)
authorPhilip Reames <listmail@philipreames.com>
Wed, 3 Mar 2021 20:20:27 +0000 (12:20 -0800)
committerPhilip Reames <listmail@philipreames.com>
Wed, 3 Mar 2021 20:20:27 +0000 (12:20 -0800)
commit89d331a31e08a5bb4704789deb43746226fac8c0
tree85b206d05792db25431d137e6997be34e44d61c6
parent99f541734695307f67cada305856cfece4ada88e
Address review comment from D97219 (follow up to 8051156)

Probably should have done this before landing, but I forgot.

Basic idea is to avoid using the SCEV predicate when it doesn't buy us anything.  Also happens to set us up for handling non-add recurrences in the future if desired.
llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp