gimple-ssa-isolate-paths.c (is_divmod_with_given_divisor): New function.
authorJeff Law <law@redhat.com>
Fri, 11 Nov 2016 16:00:47 +0000 (09:00 -0700)
committerJeff Law <law@gcc.gnu.org>
Fri, 11 Nov 2016 16:00:47 +0000 (09:00 -0700)
commit606f928d3805614e8d2307961198706ed9958a76
tree4536e26f7282becf16c143a8e48ebf01f2a07b83
parentbe2789903f67338ffa89ad26b056aae7571c850b
gimple-ssa-isolate-paths.c (is_divmod_with_given_divisor): New function.

* gimple-ssa-isolate-paths.c (is_divmod_with_given_divisor): New
function.
(stmt_uses_name_in_undefined_way): New function, extracted from
find_implicit_erroneous_behavior and extended for div/mod case.
(stmt_uses_0_or_null_in_undefined_way): New function, extracted from
find_explicit_erroneous_behavior and extended for div/mod case.
(find_implicit_erroneous_behavior): Use new helper function.
(find_explicit_erroneous_behavior): Use new helper function.

* gcc.dg/tree-ssa/isolate-6.c: New test.
* gcc.dg/tree-ssa/isolate-7.c: New test.

From-SVN: r242075
gcc/ChangeLog
gcc/gimple-ssa-isolate-paths.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/isolate-6.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/isolate-7.c [new file with mode: 0644]