* [PATCH] i386: Remove constraints when used with constant integer predicates.
@ 2022-05-15 20:10 Uros Bizjak
2022-05-17 15:40 ` Uros Bizjak
0 siblings, 1 reply; 2+ messages in thread
From: Uros Bizjak @ 2022-05-15 20:10 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 1599 bytes --]
const_int_operand and other const*_operand predicates do not need
constraints when the constraint is inherited from the range of
constant integer predicate. Remove the constraint in case all
alternatives use the same inherited constraint.
2022-05-15 Uroš Bizjak <ubizjak@gmail.com>
gcc/ChangeLog:
* config/i386/i386.md: Remove constraints when used with
const_int_operand, const0_operand, const_1_operand, constm1_operand,
const8_operand, const128_operand, const248_operand, const123_operand,
const2367_operand, const1248_operand, const359_operand,
const_4_or_8_to_11_operand, const48_operand, const_0_to_1_operand,
const_0_to_3_operand, const_0_to_4_operand, const_0_to_5_operand,
const_0_to_7_operand, const_0_to_15_operand, const_0_to_31_operand,
const_0_to_63_operand, const_0_to_127_operand, const_0_to_255_operand,
const_0_to_255_mul_8_operand, const_1_to_31_operand,
const_1_to_63_operand, const_2_to_3_operand, const_4_to_5_operand,
const_4_to_7_operand, const_6_to_7_operand, const_8_to_9_operand,
const_8_to_11_operand, const_8_to_15_operand, const_10_to_11_operand,
const_12_to_13_operand, const_12_to_15_operand, const_14_to_15_operand,
const_16_to_19_operand, const_16_to_31_operand, const_20_to_23_operand,
const_24_to_27_operand and const_28_to_31_operand.
* config/i386/mmx.md: Ditto.
* config/i386/sse.md: Ditto.
* config/i386/subst.md: Ditto.
* config/i386/sync.md: Ditto.
Bootstrapped and regression tested on x86_64-linux-gnu {,-m32}.
Pushed to master.
Uros.
[-- Attachment #2: p.diff.txt.gz --]
[-- Type: application/gzip, Size: 10403 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] i386: Remove constraints when used with constant integer predicates.
2022-05-15 20:10 [PATCH] i386: Remove constraints when used with constant integer predicates Uros Bizjak
@ 2022-05-17 15:40 ` Uros Bizjak
0 siblings, 0 replies; 2+ messages in thread
From: Uros Bizjak @ 2022-05-17 15:40 UTC (permalink / raw)
To: gcc-patches
I have reverted the patch to fix PR105624.
Uros.
On Sun, May 15, 2022 at 10:10 PM Uros Bizjak <ubizjak@gmail.com> wrote:
>
> const_int_operand and other const*_operand predicates do not need
> constraints when the constraint is inherited from the range of
> constant integer predicate. Remove the constraint in case all
> alternatives use the same inherited constraint.
>
> 2022-05-15 Uroš Bizjak <ubizjak@gmail.com>
>
> gcc/ChangeLog:
>
> * config/i386/i386.md: Remove constraints when used with
> const_int_operand, const0_operand, const_1_operand, constm1_operand,
> const8_operand, const128_operand, const248_operand, const123_operand,
> const2367_operand, const1248_operand, const359_operand,
> const_4_or_8_to_11_operand, const48_operand, const_0_to_1_operand,
> const_0_to_3_operand, const_0_to_4_operand, const_0_to_5_operand,
> const_0_to_7_operand, const_0_to_15_operand, const_0_to_31_operand,
> const_0_to_63_operand, const_0_to_127_operand, const_0_to_255_operand,
> const_0_to_255_mul_8_operand, const_1_to_31_operand,
> const_1_to_63_operand, const_2_to_3_operand, const_4_to_5_operand,
> const_4_to_7_operand, const_6_to_7_operand, const_8_to_9_operand,
> const_8_to_11_operand, const_8_to_15_operand, const_10_to_11_operand,
> const_12_to_13_operand, const_12_to_15_operand, const_14_to_15_operand,
> const_16_to_19_operand, const_16_to_31_operand, const_20_to_23_operand,
> const_24_to_27_operand and const_28_to_31_operand.
> * config/i386/mmx.md: Ditto.
> * config/i386/sse.md: Ditto.
> * config/i386/subst.md: Ditto.
> * config/i386/sync.md: Ditto.
>
> Bootstrapped and regression tested on x86_64-linux-gnu {,-m32}.
>
> Pushed to master.
>
> Uros.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-05-17 15:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-15 20:10 [PATCH] i386: Remove constraints when used with constant integer predicates Uros Bizjak
2022-05-17 15:40 ` Uros Bizjak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).