diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2021-11-30 09:52:25 +0000 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@arm.com> | 2021-11-30 09:52:25 +0000 |
commit | e9fff24cd2b365a236fcb31bdf186f6ec9e00f76 (patch) | |
tree | 8bf1c8fe2dcdb1f22fe4a1eafb002f6ceb1b2872 /gcc/tree-vectorizer.h | |
parent | e32b9eb32d7cd2d39bf9c70497890ac61b9ee14c (diff) | |
download | gcc-e9fff24cd2b365a236fcb31bdf186f6ec9e00f76.zip gcc-e9fff24cd2b365a236fcb31bdf186f6ec9e00f76.tar.gz gcc-e9fff24cd2b365a236fcb31bdf186f6ec9e00f76.tar.bz2 |
Canonicalize argument order for commutative functions
This patch uses information about internal functions to canonicalize
the argument order of calls.
gcc/
* gimple-fold.c: Include internal-fn.h.
(fold_stmt_1): If a function maps to an internal one, use
first_commutative_argument to canonicalize the order of
commutative arguments.
* gimple-match-head.c (gimple_resimplify2, gimple_resimplify3)
(gimple_resimplify4, gimple_resimplify5): Extend commutativity
checks to functions.
gcc/testsuite/
* gcc.dg/fmax-fmin-1.c: New test.
Diffstat (limited to 'gcc/tree-vectorizer.h')
0 files changed, 0 insertions, 0 deletions