diff options
author | Jakub Jelinek <jakub@redhat.com> | 2017-02-14 09:26:26 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2017-02-14 09:26:26 +0100 |
commit | 73424a09736ea34e649dd9d86d829398b6365b3f (patch) | |
tree | 3ac2c9299dd9e1473a3a32c74eb60349fc07150a /gcc/tree-ssa-loop-unswitch.c | |
parent | 977472e8c683d25d5a7480c1316c9148bfe4932d (diff) | |
download | gcc-73424a09736ea34e649dd9d86d829398b6365b3f.zip gcc-73424a09736ea34e649dd9d86d829398b6365b3f.tar.gz gcc-73424a09736ea34e649dd9d86d829398b6365b3f.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): Handle also the
case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
(simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
also if rhs1 is INTEGER_CST.
* gcc.dg/tree-ssa/pr79408-2.c: New test.
From-SVN: r245420
Diffstat (limited to 'gcc/tree-ssa-loop-unswitch.c')
0 files changed, 0 insertions, 0 deletions