]> git.ipfire.org Git - thirdparty/gcc.git/commit
middle-end: expand copysign handling from lockstep to nested iters
authorTamar Christina <tamar.christina@arm.com>
Thu, 9 Nov 2023 13:58:59 +0000 (13:58 +0000)
committerTamar Christina <tamar.christina@arm.com>
Thu, 9 Nov 2023 14:06:06 +0000 (14:06 +0000)
commit2d44ab221f64f01fc676be0da1a6774740d713c6
treea36b6d8ba9df824cfee21adef93d36aeb28bbbaf
parenta80daa2e52ab8fd8a83eec1379b4a5d4187a1162
middle-end: expand copysign handling from lockstep to nested iters

various optimizations in match.pd only happened on COPYSIGN in lock step
which means they exclude IFN_COPYSIGN.  COPYSIGN however is restricted to only
the C99 builtins and so doesn't work for vectors.

The patch expands these optimizations to work as nested iters.

This is needed for the second patch which will add the testcase.

gcc/ChangeLog:

PR tree-optimization/109154
* match.pd: expand existing copysign optimizations.
gcc/match.pd