* [PATCH] bpf: remove useless define_insn for extendsisi2
@ 2023-08-15 18:49 David Faust
2023-08-15 19:03 ` Jose E. Marchesi
0 siblings, 1 reply; 2+ messages in thread
From: David Faust @ 2023-08-15 18:49 UTC (permalink / raw)
To: gcc-patches; +Cc: jose.marchesi
This define_insn is never used, since a sign-extend to the same mode is
just a move, so delete it.
Tested on x86_64-linux-gnu host for bpf-unknown-none target.
gcc/
* config/bpf/bpf.md (extendsisi2): Delete useless define_insn.
---
gcc/config/bpf/bpf.md | 7 -------
1 file changed, 7 deletions(-)
diff --git a/gcc/config/bpf/bpf.md b/gcc/config/bpf/bpf.md
index e0a42b9f939..a64de1095ed 100644
--- a/gcc/config/bpf/bpf.md
+++ b/gcc/config/bpf/bpf.md
@@ -350,13 +350,6 @@ (define_insn "extendqidi2"
{ldxsb\t%0,%1|%0 = *(s8 *) (%1)}"
[(set_attr "type" "alu,ldx")])
-(define_insn "extendsisi2"
- [(set (match_operand:SI 0 "register_operand" "=r")
- (sign_extend:SI (match_operand:SI 1 "register_operand" "r")))]
- "bpf_has_smov"
- "{movs32\t%0,%1,32|%w0 = (s32) %w1}"
- [(set_attr "type" "alu")])
-
(define_insn "extendhisi2"
[(set (match_operand:SI 0 "register_operand" "=r")
(sign_extend:SI (match_operand:HI 1 "register_operand" "r")))]
--
2.40.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] bpf: remove useless define_insn for extendsisi2
2023-08-15 18:49 [PATCH] bpf: remove useless define_insn for extendsisi2 David Faust
@ 2023-08-15 19:03 ` Jose E. Marchesi
0 siblings, 0 replies; 2+ messages in thread
From: Jose E. Marchesi @ 2023-08-15 19:03 UTC (permalink / raw)
To: David Faust; +Cc: gcc-patches
OK.
Thanks!
> This define_insn is never used, since a sign-extend to the same mode is
> just a move, so delete it.
>
> Tested on x86_64-linux-gnu host for bpf-unknown-none target.
>
> gcc/
>
> * config/bpf/bpf.md (extendsisi2): Delete useless define_insn.
> ---
> gcc/config/bpf/bpf.md | 7 -------
> 1 file changed, 7 deletions(-)
>
> diff --git a/gcc/config/bpf/bpf.md b/gcc/config/bpf/bpf.md
> index e0a42b9f939..a64de1095ed 100644
> --- a/gcc/config/bpf/bpf.md
> +++ b/gcc/config/bpf/bpf.md
> @@ -350,13 +350,6 @@ (define_insn "extendqidi2"
> {ldxsb\t%0,%1|%0 = *(s8 *) (%1)}"
> [(set_attr "type" "alu,ldx")])
>
> -(define_insn "extendsisi2"
> - [(set (match_operand:SI 0 "register_operand" "=r")
> - (sign_extend:SI (match_operand:SI 1 "register_operand" "r")))]
> - "bpf_has_smov"
> - "{movs32\t%0,%1,32|%w0 = (s32) %w1}"
> - [(set_attr "type" "alu")])
> -
> (define_insn "extendhisi2"
> [(set (match_operand:SI 0 "register_operand" "=r")
> (sign_extend:SI (match_operand:HI 1 "register_operand" "r")))]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-08-15 19:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-15 18:49 [PATCH] bpf: remove useless define_insn for extendsisi2 David Faust
2023-08-15 19:03 ` Jose E. Marchesi
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).