aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/pt.c
diff options
context:
space:
mode:
authorFeng Xue <fxue@os.amperecomputing.com>2020-08-17 23:00:35 +0800
committerFeng Xue <fxue@os.amperecomputing.com>2020-09-15 22:51:28 +0800
commit8f0d743c2dee6afae5c6f861b0642b7b112a4a70 (patch)
treedc5f349561cd3bf9bbdca113a1504741fa88b513 /gcc/cp/pt.c
parent9e89fa0e2d7da77236cad50c0a9a33b7a4b97367 (diff)
downloadgcc-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