diff options
author | Jakub Jelinek <jakub@redhat.com> | 2017-02-08 10:21:57 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2017-02-08 10:21:57 +0100 |
commit | 74a15d1424da560bb599fe781ccbef070372a477 (patch) | |
tree | ab1c196bea449e8d75b31dfc1fabc401ae65b2d2 /gcc/tree-outof-ssa.c | |
parent | 01726bc97785f6e66d6d882bf2b81077391603c5 (diff) | |
download | gcc-74a15d1424da560bb599fe781ccbef070372a477.zip gcc-74a15d1424da560bb599fe781ccbef070372a477.tar.gz gcc-74a15d1424da560bb599fe781ccbef070372a477.tar.bz2 |
re PR tree-optimization/79408 (Missed VRP optimization of integer modulo)
PR tree-optimization/79408
* tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
constant, but SSA_NAME with a known integer range, use the minimum
of that range instead of op1 to determine if modulo can be replaced
with its first operand.
* gcc.dg/tree-ssa/pr79408.c: New test.
From-SVN: r245273
Diffstat (limited to 'gcc/tree-outof-ssa.c')
0 files changed, 0 insertions, 0 deletions