HomePhabricator

[SLP] Stop counting cost of gather sequences with multiple uses

Description

[SLP] Stop counting cost of gather sequences with multiple uses

When building the SLP tree, we look for reuse among the vectorized tree
entries. However, each gather sequence is represented by a unique tree entry,
even though the sequence may be identical to another one. This means, for
example, that a gather sequence with two uses will be counted twice when
computing the cost of the tree. We should only count the cost of the definition
of a gather sequence rather than its uses. During code generation, the
redundant gather sequences are emitted, but we optimize them away with CSE. So
it looks like this problem just affects the cost model.

Differential Revision: https://reviews.llvm.org/D44742

Details

Committed
mssimpsoMar 23 2018, 7:18 AM
Differential Revision
D44742: [SLP] Stop counting cost of gather sequences with multiple uses
Parents
rL328315: Remove deprecated MemIntrinsic methods (NFC)
Branches
Unknown
Tags
Unknown