]> git.ipfire.org Git - thirdparty/gcc.git/commit
middle-end: use MAX_FIXED_MODE_SIZE instead of precidion of TImode/DImode
authorJakub Jelinek <jakub@redhat.com>
Wed, 20 Sep 2023 07:45:42 +0000 (09:45 +0200)
committerJakub Jelinek <jakub@redhat.com>
Wed, 20 Sep 2023 07:45:42 +0000 (09:45 +0200)
commit47ecac52bd4cae84dc786731c655c3bfe1ade377
treee33dcd0f3f031e22d7568742b9e9727fd64153c3
parent264ff8182580c57f77c6bc60381cfb2c3842b46c
middle-end: use MAX_FIXED_MODE_SIZE instead of precidion of TImode/DImode

On Tue, Sep 19, 2023 at 05:50:59PM +0100, Richard Sandiford wrote:
> How about using MAX_FIXED_MODE_SIZE for things like this?

Seems like a good idea.

The following patch does that.

2023-09-20  Jakub Jelinek  <jakub@redhat.com>

* match.pd ((x << c) >> c): Use MAX_FIXED_MODE_SIZE instead of
GET_MODE_PRECISION of TImode or DImode depending on whether
TImode is supported scalar mode.
* gimple-lower-bitint.cc (bitint_precision_kind): Likewise.
* expr.cc (expand_expr_real_1): Likewise.
* tree-ssa-sccvn.cc (eliminate_dom_walker::eliminate_stmt): Likewise.
* ubsan.cc (ubsan_encode_value, ubsan_type_descriptor): Likewise.
gcc/expr.cc
gcc/gimple-lower-bitint.cc
gcc/match.pd
gcc/tree-ssa-sccvn.cc
gcc/ubsan.cc