diff options
author | Feng Xue <fxue@os.amperecomputing.com> | 2020-08-17 23:00:35 +0800 |
---|---|---|
committer | Feng Xue <fxue@os.amperecomputing.com> | 2020-09-15 22:51:28 +0800 |
commit | 8f0d743c2dee6afae5c6f861b0642b7b112a4a70 (patch) | |
tree | dc5f349561cd3bf9bbdca113a1504741fa88b513 /gcc/cp/pt.c | |
parent | 9e89fa0e2d7da77236cad50c0a9a33b7a4b97367 (diff) | |
download | gcc-8f0d743c2dee6afae5c6f861b0642b7b112a4a70.zip gcc-8f0d743c2dee6afae5c6f861b0642b7b112a4a70.tar.gz gcc-8f0d743c2dee6afae5c6f861b0642b7b112a4a70.tar.bz2 |
tree-optimization/94234 - add plusminus-with-convert pattern
Add a rule (T)(A) +- (T)(B) -> (T)(A +- B), which works only when (A +- B)
could be folded to a simple value. By this rule, a plusminus-mult-with-convert
expression could be handed over to the rule (A * C) +- (B * C) -> (A +- B).
2020-09-15 Feng Xue <fxue@os.amperecomputing.com>
gcc/
PR tree-optimization/94234
* match.pd (T)(A) +- (T)(B) -> (T)(A +- B): New simplification.
gcc/testsuite/
PR tree-optimization/94234
* gcc.dg/pr94234-3.c: New test.
Diffstat (limited to 'gcc/cp/pt.c')
0 files changed, 0 insertions, 0 deletions