OSDN Git Service

[SLP] use reduction kind's opcode for cost model queries; NFC
authorSanjay Patel <spatel@rotateright.com>
Tue, 5 Jan 2021 20:08:51 +0000 (15:08 -0500)
committerSanjay Patel <spatel@rotateright.com>
Tue, 5 Jan 2021 20:12:40 +0000 (15:12 -0500)
commit5a1d31a28490e85de440b55e2e257b61d32e85b9
tree91dc783e53356a58264e434262dfd8812f70c628
parentd4a999b453a4d3cfeee02f00f4900327fc7fcede
[SLP] use reduction kind's opcode for cost model queries; NFC

This should be no-functional-change because the reduction kind
opcodes are 1-for-1 mappings to the instructions we are matching
as reductions. But we want to remove the need for the
`OperationData` opcode field because that does not work when
we start matching intrinsics (eg, maxnum) as reduction candidates.
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp