aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-im.c
diff options
context:
space:
mode:
authorAndrew Pinski <apinski@marvell.com>2021-11-16 04:46:21 +0000
committerAndrew Pinski <apinski@marvell.com>2021-11-19 06:41:21 +0000
commit527e54a431473cc497204226a21f2831d2375e66 (patch)
tree0f21b841f20827a12508a835d17e93399496030f /gcc/tree-ssa-loop-im.c
parent0790c8aacdfb4fd096aa580dae0fe49172c43ab2 (diff)
downloadgcc-527e54a431473cc497204226a21f2831d2375e66.zip
gcc-527e54a431473cc497204226a21f2831d2375e66.tar.gz
gcc-527e54a431473cc497204226a21f2831d2375e66.tar.bz2
Fix tree-optimization/103257: Missed jump threading due too early conversion of bool*A into bool?A:0
So like many optimizations on the gimple level, sometimes it makes sense to do the optimization early or later. In this case, creating a cond expression early causes other optimizations to be missed. So just disable it until canonicalize_math_p () is false. OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions. PR tree-optimization/103257 gcc/ChangeLog: * match.pd ((m1 >/</>=/<= m2) * d -> (m1 >/</>=/<= m2) ? d : 0): Disable until !canonicalize_math_p (). gcc/testsuite/ChangeLog: * gcc.dg/tree-ssa/vrp116.c: Check optimized instead of vrp1. * gcc.dg/tree-ssa/pr103257-1.c: New test.
Diffstat (limited to 'gcc/tree-ssa-loop-im.c')
0 files changed, 0 insertions, 0 deletions