aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUtils.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2020-12-29 14:21:16 -0500
committerSanjay Patel <spatel@rotateright.com>2020-12-29 14:52:11 -0500
commit21a3a0225d84cd35227fc9d4d08234918a54f8d3 (patch)
treea3167c89c79907971beca85be86c301aab0cf1ed /llvm/lib/Transforms/Utils/LoopUtils.cpp
parentf7f09e2b1c897f0b42be72939d0c97dcfd1577f7 (diff)
downloadllvm-21a3a0225d84cd35227fc9d4d08234918a54f8d3.zip
llvm-21a3a0225d84cd35227fc9d4d08234918a54f8d3.tar.gz
llvm-21a3a0225d84cd35227fc9d4d08234918a54f8d3.tar.bz2
[SLP] replace local reduction enum with RecurrenceKind; NFCI
I'm not sure if the SLP enum was created before the IVDescriptor RecurrenceDescriptor / RecurrenceKind existed, but the code in SLP is now redundant with that class, so it just makes things more complicated to have both. We eventually call LoopUtils createSimpleTargetReduction() to create reduction ops, so we might as well standardize on those enum names. There's still a question of whether we need to use TTI::ReductionFlags vs. MinMaxRecurrenceKind, but that can be another clean-up step. Another option would just be to flatten the enums in RecurrenceDescriptor into a single enum. There isn't much benefit (smaller switches?) to having a min/max subset.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions