diff options
author | Sanjay Patel <spatel@rotateright.com> | 2021-01-01 12:09:02 -0500 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2021-01-01 12:20:16 -0500 |
commit | c74e8539ff372a89d08e7bfea7323a4dc2979d22 (patch) | |
tree | 498ea5a07c34ef9f07257fd5e0e794e2a75327e6 /llvm/lib/Support/CommandLine.cpp | |
parent | c182a000954de667f1e87055bf0329e5e6f52f1f (diff) | |
download | llvm-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