[SLP] refactor more reduction functions; NFC
authorSanjay Patel <spatel@rotateright.com>
Wed, 20 Jan 2021 13:11:30 +0000 (08:11 -0500)
committerSanjay Patel <spatel@rotateright.com>
Wed, 20 Jan 2021 16:14:48 +0000 (11:14 -0500)
commit1c54112a5762ebab2c14a90c55f27d00bfced7f8
treeab2450c4dfec0faa1f22d98b807571047030c06c
parent8590d245434dd4205c89f0a05b4c22feccb7421c
[SLP] refactor more reduction functions; NFC

We were able to remove almost all of the state from
OperationData, so these don't make sense as members
of that class - just pass the RecurKind in as a param.

More streamlining is possible, but I'm trying to avoid
logic/typo bugs while fixing this. Eventually, we should
not need the `OperationData` class.
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp