diff options
author | Richard Biener <rguenther@suse.de> | 2022-08-16 09:43:24 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2022-08-16 11:20:03 +0200 |
commit | 5e88fccf4be7e8ab22734d87f8e520b25d92d845 (patch) | |
tree | a4ca9b133ede0162e5007e617247053e12ff7af7 /gcc/value-range.h | |
parent | bae12e2f832b2fb0189348c2650362ce9308e4f5 (diff) | |
download | gcc-5e88fccf4be7e8ab22734d87f8e520b25d92d845.zip gcc-5e88fccf4be7e8ab22734d87f8e520b25d92d845.tar.gz gcc-5e88fccf4be7e8ab22734d87f8e520b25d92d845.tar.bz2 |
middle-end/106630 - avoid ping-pong between extract_muldiv and match.pd
The following avoids ping-pong between the match.pd pattern changing
(sizetype) ((a_9 + 1) * 48) to (sizetype)(a_9 + 1) * 48 and
extract_muldiv performing the reverse transform by restricting the
match.pd pattern to narrowing conversions as the comment indicates.
PR middle-end/106630
* match.pd ((T)(x * CST) -> (T)x * CST): Restrict to
narrowing conversions.
* gcc.dg/torture/pr106630.c: New testcase.
Diffstat (limited to 'gcc/value-range.h')
0 files changed, 0 insertions, 0 deletions