public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-3228] bpf: remove useless define_insn for extendsisi2
@ 2023-08-15 19:11 David Faust
  0 siblings, 0 replies; only message in thread
From: David Faust @ 2023-08-15 19:11 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:5da4c0b85a97727e6802eaf3a0d47bcdb8da5f51

commit r14-3228-g5da4c0b85a97727e6802eaf3a0d47bcdb8da5f51
Author: David Faust <david.faust@oracle.com>
Date:   Tue Aug 15 11:11:23 2023 -0700

    bpf: remove useless define_insn for extendsisi2
    
    This define_insn is never used, since a sign-extend to the same mode is
    just a move, so delete it.
    
    gcc/
    
            * config/bpf/bpf.md (extendsisi2): Delete useless define_insn.

Diff:
---
 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 e0a42b9f9390..a64de1095eda 100644
--- a/gcc/config/bpf/bpf.md
+++ b/gcc/config/bpf/bpf.md
@@ -350,13 +350,6 @@
    {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] only message in thread

only message in thread, other threads:[~2023-08-15 19:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-15 19:11 [gcc r14-3228] bpf: remove useless define_insn for extendsisi2 David Faust

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).