tree-ssa-dce: Fix up maybe_optimize_arith_overflow for BITINT_TYPE [PR112880]
commitf74939bd539c87f669e35042f7bc7aa47f0c29eb
authorJakub Jelinek <jakub@redhat.com>
Thu, 7 Dec 2023 08:46:38 +0000 (7 09:46 +0100)
committerJakub Jelinek <jakub@redhat.com>
Thu, 7 Dec 2023 08:46:38 +0000 (7 09:46 +0100)
tree9d2e25876539cc252044ef2ee432efea3963a56d
parent0d79636b8d2c7f0da16fbf5f786993783a4389ff
tree-ssa-dce: Fix up maybe_optimize_arith_overflow for BITINT_TYPE [PR112880]

The following testcase ICEs because maybe_optimize_arith_overflow
uses build_nonstandard_integer_type, which is inappropriate if
type is large BITINT_TYPE.

2023-12-07  Jakub Jelinek  <jakub@redhat.com>

PR tree-optimization/112880
* tree-ssa-dce.cc (maybe_optimize_arith_overflow): Use
unsigned_type_for instead of conditionally calling
build_nonstandard_integer_type.

* gcc.dg/bitint-49.c: New test.
gcc/testsuite/gcc.dg/bitint-49.c [new file with mode: 0644]
gcc/tree-ssa-dce.cc