aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2021-01-01 12:09:02 -0500
committerSanjay Patel <spatel@rotateright.com>2021-01-01 12:20:16 -0500
commitc74e8539ff372a89d08e7bfea7323a4dc2979d22 (patch)
tree498ea5a07c34ef9f07257fd5e0e794e2a75327e6 /llvm/lib/Support/CommandLine.cpp
parentc182a000954de667f1e87055bf0329e5e6f52f1f (diff)
downloadllvm-c74e8539ff372a89d08e7bfea7323a4dc2979d22.zip
llvm-c74e8539ff372a89d08e7bfea7323a4dc2979d22.tar.gz
llvm-c74e8539ff372a89d08e7bfea7323a4dc2979d22.tar.bz2
[Analysis] flatten enums for recurrence types
This is almost all mechanical search-and-replace and no-functional-change-intended (NFC). Having a single enum makes it easier to match/reason about the reduction cases. The goal is to remove `Opcode` from reduction matching code in the vectorizers because that makes it harder to adapt the code to handle intrinsics. The code in RecurrenceDescriptor::AddReductionVar() is the only place that required closer inspection. It uses a RecurrenceDescriptor and a second InstDesc to sometimes overwrite part of the struct. It seem like we should be able to simplify that logic, but it's not clear exactly which cmp+sel patterns that we are trying to handle/avoid.
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions