aboutsummaryrefslogtreecommitdiff
path: root/gcc/function-tests.c
diff options
context:
space:
mode:
authorDominik Vogt <vogt@linux.vnet.ibm.com>2016-12-19 09:51:11 +0000
committerAndreas Krebbel <krebbel@gcc.gnu.org>2016-12-19 09:51:11 +0000
commite01f223f28d94ececee29b8048434361de5cd40c (patch)
treebcc6a4b4ea47d1b3d32ba5e04c14b62d3133c06c /gcc/function-tests.c
parent26b14bc192861450d7d4d20faa5e54f489af1b68 (diff)
downloadgcc-e01f223f28d94ececee29b8048434361de5cd40c.zip
gcc-e01f223f28d94ececee29b8048434361de5cd40c.tar.gz
gcc-e01f223f28d94ececee29b8048434361de5cd40c.tar.bz2
combine: Omit redundant AND in change_zero_ext.
This is another micro-optimisation in change_zero_ext. If an (and (lshiftrt ... (N)) (M)) generated by change_zero_ext is equivalent to just (lshiftrt ... (N)) (because the AND constant selects the N rightmost bits of the result), strip off the AND. gcc/ChangeLog: 2016-12-19 Dominik Vogt <vogt@linux.vnet.ibm.com> * combine.c (change_zero_ext): Skip generation of redundant AND. From-SVN: r243792
Diffstat (limited to 'gcc/function-tests.c')
0 files changed, 0 insertions, 0 deletions