[Analysis] simplify propagation of FMF in recurrences; NFC
authorSanjay Patel <spatel@rotateright.com>
Wed, 3 Mar 2021 21:53:49 +0000 (16:53 -0500)
committerSanjay Patel <spatel@rotateright.com>
Wed, 3 Mar 2021 22:28:10 +0000 (17:28 -0500)
commitb3f0c2653b61377413c02ce6f6cdeb452c9a8e79
treea7e842dfdf4df5d7ccc22b3bd21bce4dc70173b6
parent295ea050ad594b8868b6dd944824ba9a16273f91
[Analysis] simplify propagation of FMF in recurrences; NFC

This is a mess, but this is hopefully no-functional-change.
The 'Prev' descriptor is only used for min/max recurrences
or when starting a match from a phi, so it should not be a
factor when propagating FMF for fmul/fadd.

The API is confusing (and should be reduced in subsequent steps)
because the "UnsafeAlgebraInst" appears to actually be a placeholder
for a recurrence that does NOT have FMF, but we still want to
treat it as reassociative.
llvm/lib/Analysis/IVDescriptors.cpp