HomePhabricator

[SLPVectorizer] Ensure dominated reduction values.

Description

[SLPVectorizer] Ensure dominated reduction values.

When considering incoming values as part of a reduction phi, ensure the
incoming value is dominated by said phi.

Failing to ensure this property causes miscompiles.

Fixes PR25787.

Many thanks to Mattias Eriksson for reporting, reducing and analyzing the
problem for me.

Differential Revision: http://reviews.llvm.org/D15580

Details

Committed
chatur01Dec 16 2015, 10:23 AM
Differential Revision
D15580: [SLPVectorizer] Ensure dominated reduction values.
Parents
rL255791: Revert "[llvm-readobj] Simplify usage of -codeview flag"
Branches
Unknown
Tags
Unknown