Re: [PATCH 2/2][GCC][RFC][middle-end]: Add complex number arithmetic patterns to SLP pattern matcher.

2019-10-01 Thread Toon Moene
On 10/1/19 1:39 PM, Tamar Christina wrote: The patterns work by looking at the sequence produced after GCC lowers complex numbers. As such they would match any normal operation that does the same computations. Thanks - I didn't understand Ramana's comments during the GNU Tools Cauldron

[PATCH 2/2][GCC][RFC][middle-end]: Add complex number arithmetic patterns to SLP pattern matcher.

2019-10-01 Thread Tamar Christina
Hi All, This patch adds pattern detections for the following operations: 1) Addition with rotation of the second argument around the Argand plane. Supported rotations are 90 and 180. c = a + (b * I) and c = a + (b * I * I) 2) Complex multiplication and Conjucate Complex