aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimplify.c
diff options
context:
space:
mode:
authorAndrew Pinski <apinski@marvell.com>2021-05-16 13:07:06 -0700
committerAndrew Pinski <apinski@marvell.com>2021-05-26 00:46:30 +0000
commitb6bdd7a4cb41ee057f2d064fffcb00f23ce6b497 (patch)
tree68aac077c5e9aaae34cdd06dcdb882487eb705d7 /gcc/gimplify.c
parent2bc6dacecb2ba60f1f06f310c6887a26b09cdba8 (diff)
downloadgcc-b6bdd7a4cb41ee057f2d064fffcb00f23ce6b497.zip
gcc-b6bdd7a4cb41ee057f2d064fffcb00f23ce6b497.tar.gz
gcc-b6bdd7a4cb41ee057f2d064fffcb00f23ce6b497.tar.bz2
Add a couple of A?CST1:CST2 match and simplify optimizations
Instead of some of the more manual optimizations inside phi-opt, it would be good idea to do a lot of the heavy lifting inside match and simplify instead. In the process, this moves the three simple A?CST1:CST2 (where CST1 or CST2 is zero) simplifications. OK? Boostrapped and tested on x86_64-linux-gnu with no regressions. Differences from V1: * Use bit_xor 1 instead of bit_not to fix the problem with boolean types which are not 1 bit precision. Thanks, Andrew Pinski gcc: * match.pd (A?CST1:CST2): Add simplifcations for A?0:+-1, A?+-1:0, A?POW2:0 and A?0:POW2.
Diffstat (limited to 'gcc/gimplify.c')
0 files changed, 0 insertions, 0 deletions