[SLP] reduce code for finding reduction costs; NFC
authorSanjay Patel <spatel@rotateright.com>
Tue, 5 Jan 2021 22:23:24 +0000 (17:23 -0500)
committerSanjay Patel <spatel@rotateright.com>
Tue, 5 Jan 2021 22:35:54 +0000 (17:35 -0500)
commit6a03f8ab629b34a2425764caaa46dbfcf3d8e1ef
treef572fc9ff37f036737d223d15625abc5fa77be91
parent1ebe86adf52cbddc03f535554b16585b2947b32c
[SLP] reduce code for finding reduction costs; NFC

We can get both (vector/scalar) costs in a single switch
instead of sequentially.
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp