re PR tree-optimization/92163 (ICE: Segmentation fault (in bitmap_set_bit))
authorPrathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
Mon, 28 Oct 2019 15:01:24 +0000 (15:01 +0000)
committerPrathamesh Kulkarni <prathamesh3492@gcc.gnu.org>
Mon, 28 Oct 2019 15:01:24 +0000 (15:01 +0000)
commit4b0ab0d9588f6c63f7102e70de52684cdda49de8
tree0b3bbb28c2906a9e3fcbde687afc7295729329b4
parentfa03d5763a91f5061152842c92fbb4e446a3b75f
re PR tree-optimization/92163 (ICE: Segmentation fault (in bitmap_set_bit))

2019-10-28  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>

PR tree-optimization/92163
* tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
before calling bitmap_set_bit.
(dse_optimize_redundant_stores): Pass global need_eh_cleanup to
delete_dead_or_redundant_assignment.
(dse_dom_walker::dse_optimize_stmt): Likewise.
* tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.

testsuite/
* gcc.dg/tree-ssa/pr92163.c: New test.

From-SVN: r277525
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr92163.c [new file with mode: 0644]
gcc/tree-ssa-dse.c
gcc/tree-ssa-dse.h