Commit c619222e authored by Alexey Bataev's avatar Alexey Bataev
Browse files

[SLP]Use common logic for cost estimation of the alternate vector nodes.

We can use buildShuffleEntryMask() to build the shuffle mask correctly
not only for the alternate nodes with reuses, but also for the nodes
without reused scalars. It allows better to estimate the cost of the
node and emit better code.

Differential Revision: https://reviews.llvm.org/D157413
parent 335d0e3a
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment