[SLP] simplify reduction matching
authorSanjay Patel <spatel@rotateright.com>
Thu, 21 Jan 2021 19:54:03 +0000 (14:54 -0500)
committerSanjay Patel <spatel@rotateright.com>
Thu, 21 Jan 2021 19:58:57 +0000 (14:58 -0500)
commitd77753381fe024434ae8ffaaacfe4b9ed9d4d760
tree390954aefa4ef6d241cfa60e4ce32a31f2ae2af8
parent8e0b17931530e84f45586e31b58b031d6d68ee6c
[SLP] simplify reduction matching

This is NFC-intended and removes the "OperationData"
class which had become nothing more than a recurrence
(reduction) type.

I adjusted the matching logic to distinguish
instructions from non-instructions - that's all that
the "IsLeafValue" member was keeping track of.
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp