[Bug tree-optimization/87287] Move signed (x % pow2) == 0 optimization to gimple
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Sep 13 07:39:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87287
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Sep 13 07:36:50 2018
New Revision: 264260
URL: https://gcc.gnu.org/viewcvs?rev=264260&root=gcc&view=rev
Log:
PR tree-optimization/87287
* fold-const.c (fold_binary_loc) <case EQ_EXPR>: Move signed modulo
X % C == 0 to X % (unsigned) C == 0 optimization to ...
* match.pd (X % C == 0): ... here. New optimization.
* gcc.dg/tree-ssa/pr87287.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/tree-ssa/pr87287.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/match.pd
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list