slp: elide intermediate nodes for complex add and avoid truncate
authorTamar Christina <tamar.christina@arm.com>
Thu, 14 Jan 2021 20:49:55 +0000 (20:49 +0000)
committerTamar Christina <tamar.christina@arm.com>
Thu, 14 Jan 2021 20:49:55 +0000 (20:49 +0000)
commitfe70119531395c8105b098bfa915c003c78be038
tree4c2e6882ca761e3e002668ed7f794f68c26c1350
parentdea4a32b24fb888532c47f3920f6910b3c94a8a0
slp: elide intermediate nodes for complex add and avoid truncate

This applies the same feedback received for MUL and the rest to
ADD which was already committed.  In short it elides the intermediate
nodes vec and avoids the use of truncate on the SLP child.

gcc/ChangeLog:

* tree-vect-slp-patterns.c (complex_add_pattern::build):
Elide nodes.
gcc/tree-vect-slp-patterns.c