re PR tree-optimization/92085 (ICE: tree check: expected class 'type', have 'exceptio...
authorPrathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
Tue, 15 Oct 2019 07:19:41 +0000 (07:19 +0000)
committerPrathamesh Kulkarni <prathamesh3492@gcc.gnu.org>
Tue, 15 Oct 2019 07:19:41 +0000 (07:19 +0000)
commit3c8e341b996546607fa1f39a0fd9a9d7c2c38214
tree6003d1912201949e1194f1a78591b9b8ce639548
parent51992f15a7d9adce1016f8c31d37409e50d5797f
re PR tree-optimization/92085 (ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in useless_type_conversion_p, at gimple-expr.c:86)

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

PR tree-optimization/92085
* tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
instead of calling it unconditionally after
delete_dead_or_redundant_assignment and fix indentation.

testsuite/
* gcc.dg/tree-ssa/pr92085-1.c: New test.
* gcc.dg/tree-ssa/pr92085-2.c: Likewise.

From-SVN: r276984
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr92085-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr92085-2.c [new file with mode: 0644]
gcc/tree-if-conv.c