aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-loop-distribution.c
diff options
context:
space:
mode:
authorAndrew Pinski <apinski@marvell.com>2021-11-19 01:42:41 +0000
committerAndrew Pinski <apinski@marvell.com>2021-11-19 12:06:43 +0000
commitea2954df43d4162af23a20c84f4c5485463977ac (patch)
tree0c386e398ebd235fc0305681cb9df9671bcef4ad /gcc/tree-loop-distribution.c
parent74a4ece02df1b1b6f396fd0e24dbbf8b0897858a (diff)
downloadgcc-ea2954df43d4162af23a20c84f4c5485463977ac.zip
gcc-ea2954df43d4162af23a20c84f4c5485463977ac.tar.gz
gcc-ea2954df43d4162af23a20c84f4c5485463977ac.tar.bz2
Fix tree-optimization/103314 : Limit folding of (type) X op CST where type is a nop convert to gimple
There is some re-association code in fold_binary which conflicts with this optimization due keeping around some "constants" which are not INTEGER_CST (1 << -1) so we end up in an infinite loop because of that. So we need to limit this case to GIMPLE level only. OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions. PR tree-optimization/103314 gcc/ChangeLog: * match.pd ((type) X op CST): Restrict the equal TYPE_PRECISION case to GIMPLE only. gcc/testsuite/ChangeLog: * gcc.c-torture/compile/pr103314-1.c: New test.
Diffstat (limited to 'gcc/tree-loop-distribution.c')
0 files changed, 0 insertions, 0 deletions