HomePhabricator

[SLP] Fix order of `insertelement`/`insertvalue` seed operands

Authored by anton-afanasyev on Jul 14 2020, 8:04 AM.

Description

[SLP] Fix order of insertelement/insertvalue seed operands

Summary:
This patch takes the indices operands of insertelement/insertvalue
into account while generation of seed elements for findBuildAggregate().
This function has kept the original order of inserts before.
Also this patch optimizes findBuildAggregate() preventing it from
redundant temporary vector allocations and its multiple reversing.

Fixes llvm.org/pr44067

Subscribers: hiraditya, llvm-commits

Tags: #llvm

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

Details

Committed
anton-afanasyevAug 6 2020, 12:09 PM
Differential Revision
D83779: [SLP] Fix order of `insertelement`/`insertvalue` seed operands
Parents
rG189ba3db8653: Fix CFI issues in <future>
Branches
Unknown
Tags
Unknown