diff options
author | Tamar Christina <tamar.christina@arm.com> | 2023-03-12 18:39:33 +0000 |
---|---|---|
committer | Tamar Christina <tamar.christina@arm.com> | 2023-03-12 18:39:33 +0000 |
commit | 2246d576f922bae3629da0fe1dbfcc6ff06769ad (patch) | |
tree | 6c560ab180f68a6da55cdcedafcfb2e3ca187d75 /gcc/explow.cc | |
parent | 8536c09108f429d8ab6ca850f3835668cc1c8929 (diff) | |
download | gcc-2246d576f922bae3629da0fe1dbfcc6ff06769ad.zip gcc-2246d576f922bae3629da0fe1dbfcc6ff06769ad.tar.gz gcc-2246d576f922bae3629da0fe1dbfcc6ff06769ad.tar.bz2 |
middle-end: Revert can_special_div_by_const changes [PR108583]
This reverts the changes for the CAN_SPECIAL_DIV_BY_CONST hook.
gcc/ChangeLog:
PR target/108583
* doc/tm.texi (TARGET_VECTORIZE_CAN_SPECIAL_DIV_BY_CONST): Remove.
* doc/tm.texi.in: Likewise.
* explow.cc (round_push, align_dynamic_address): Revert previous patch.
* expmed.cc (expand_divmod): Likewise.
* expmed.h (expand_divmod): Likewise.
* expr.cc (force_operand, expand_expr_divmod): Likewise.
* optabs.cc (expand_doubleword_mod, expand_doubleword_divmod): Likewise.
* target.def (can_special_div_by_const): Remove.
* target.h: Remove tree-core.h include
* targhooks.cc (default_can_special_div_by_const): Remove.
* targhooks.h (default_can_special_div_by_const): Remove.
* tree-vect-generic.cc (expand_vector_operation): Remove hook.
* tree-vect-patterns.cc (vect_recog_divmod_pattern): Remove hook.
* tree-vect-stmts.cc (vectorizable_operation): Remove hook.
Diffstat (limited to 'gcc/explow.cc')
-rw-r--r-- | gcc/explow.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/explow.cc b/gcc/explow.cc index 32e9498..6424c08 100644 --- a/gcc/explow.cc +++ b/gcc/explow.cc @@ -1042,7 +1042,7 @@ round_push (rtx size) TRUNC_DIV_EXPR. */ size = expand_binop (Pmode, add_optab, size, alignm1_rtx, NULL_RTX, 1, OPTAB_LIB_WIDEN); - size = expand_divmod (0, TRUNC_DIV_EXPR, Pmode, NULL, NULL, size, align_rtx, + size = expand_divmod (0, TRUNC_DIV_EXPR, Pmode, size, align_rtx, NULL_RTX, 1); size = expand_mult (Pmode, size, align_rtx, NULL_RTX, 1); @@ -1208,7 +1208,7 @@ align_dynamic_address (rtx target, unsigned required_align) gen_int_mode (required_align / BITS_PER_UNIT - 1, Pmode), NULL_RTX, 1, OPTAB_LIB_WIDEN); - target = expand_divmod (0, TRUNC_DIV_EXPR, Pmode, NULL, NULL, target, + target = expand_divmod (0, TRUNC_DIV_EXPR, Pmode, target, gen_int_mode (required_align / BITS_PER_UNIT, Pmode), NULL_RTX, 1); |