]> git.ipfire.org Git - thirdparty/gcc.git/commit
Perform on-entry propagation after range_of_stmt on a gcond.
authorAndrew MacLeod <amacleod@redhat.com>
Thu, 28 Oct 2021 17:31:17 +0000 (13:31 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Fri, 29 Oct 2021 14:31:56 +0000 (10:31 -0400)
commitcb596fd43667f92c4cb037a4ee8b2061c393ba60
tree77c58262cba2b191ffba14ee461ab4aee6a401a6
parentb8ef019ab938471f7f877a1eee3a6374fd8a6ae9
Perform on-entry propagation after range_of_stmt on a gcond.

Propagation is automatically done by the temporal cache when defs are
out of date from the names on the RHS, but a gcond has no LHS, and any
updates on the RHS are never propagated.  Always propagate them.

gcc/
PR tree-optimization/102983
* gimple-range-cache.h (propagate_updated_value): Make public.
* gimple-range.cc (gimple_ranger::range_of_stmt): Propagate exports
when processing gcond stmts.

gcc/testsuite/
* gcc.dg/pr102983.c: New.
gcc/gimple-range-cache.h
gcc/gimple-range.cc
gcc/testsuite/gcc.dg/pr102983.c [new file with mode: 0644]