tree-ssa-uninit: avoid ICE with BIT_AND_EXPR (PR 90394)
authorVladislav Ivanishin <vlad@ispras.ru>
Thu, 16 May 2019 12:36:33 +0000 (12:36 +0000)
committerAlexander Monakov <amonakov@gcc.gnu.org>
Thu, 16 May 2019 12:36:33 +0000 (15:36 +0300)
commit74a96dd28c997a55344c201baeed409e9e4ce7af
treef3a06302d57d8915faa04cfa381930c2438ad6de
parent0bc229dbbe2a109ea39d08ced1bb296c59bcd120
tree-ssa-uninit: avoid ICE with BIT_AND_EXPR (PR 90394)

2019-05-16  Vladislav Ivanishin  <vlad@ispras.ru>

PR tree-optimization/90394
* tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
positives rather than ICE for cases where (code2 == NE_EXPR
&& code1 == BIT_AND_EXPR).

testsuite/
* gcc.dg/uninit-pr90394-1-gimple.c: New test.
* gcc.dg/uninit-pr90394.c: New test.

From-SVN: r271287
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/uninit-pr90394-1-gimple.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/uninit-pr90394.c [new file with mode: 0644]
gcc/tree-ssa-uninit.c