public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jeff Law <jeffreyalaw@gmail.com>
To: Lehua Ding <lehua.ding@rivai.ai>, Edwin Lu <ewlu@rivosinc.com>,
	gcc-patches@gcc.gnu.org
Cc: gnu-toolchain@rivosinc.com
Subject: Re: [PATCH] RISC-V: Finish Typing Un-Typed Instructions and Turn on Assert
Date: Mon, 11 Sep 2023 21:00:43 -0600	[thread overview]
Message-ID: <fde21d00-e2ae-4a55-82c3-f06e17b6a485@gmail.com> (raw)
In-Reply-To: <9F63A23D4D863426+7ccedfd0-d4fe-4e8f-b06b-fe08817eabce@rivai.ai>



On 9/11/23 20:33, Lehua Ding wrote:
> Hi Edwin,
> 
> Sorry to bother you. I have a small question for you.
> 
> On 2023/9/12 6:52, Edwin Lu wrote:
>> --- a/gcc/config/riscv/autovec-opt.md +++ 
>> b/gcc/config/riscv/autovec-opt.md @@ -649,7 +649,8 @@ 
>> (define_insn_and_split "*cond_<optab><mode>" gen_int_mode 
>> (GET_MODE_NUNITS (<MODE>mode), Pmode)}; 
>> riscv_vector::expand_cond_len_unop (icode, ops); DONE; -}) +} 
>> +[(set_attr "type" "vector")])
> 
> Is it necessary to add type attribute to these INSNs that exist only 
> before split1 pass? These instructions are expanded into the pattern in 
> vector.md after split1 pass and do not reach the sched1 pass at all. If 
> so, I feel that these patterns cannot be added, and it is reasonable to 
> report an error if these INSNs reach sched1 pass. Thanks.
I'd rather be consistent and make it policy that every insn has a type.

The next thing I'd like to do (and it's probably much more work) is to 
validate that every insn type maps to a functional unit for the sched2 
pass.  The scheduler will do some horrible things to the generated code 
when lots of insns either don't have types or the types aren't matched 
to a functional unit.

Jeff

  reply	other threads:[~2023-09-12  3:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-11 22:52 Edwin Lu
2023-09-12  0:49 ` Jeff Law
2023-09-15 22:51   ` [Committed] " Edwin Lu
2023-09-15 22:51     ` Edwin Lu
2023-09-12  2:33 ` [PATCH] " Lehua Ding
2023-09-12  3:00   ` Jeff Law [this message]
2023-09-12  3:17     ` Lehua Ding
2023-09-12  3:47       ` Jeff Law
2023-09-12  6:18         ` Lehua Ding
2023-09-17 13:46           ` Jeff Law
2023-09-18  7:29             ` Lehua Ding
2023-09-19 17:23               ` Jeff Law

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fde21d00-e2ae-4a55-82c3-f06e17b6a485@gmail.com \
    --to=jeffreyalaw@gmail.com \
    --cc=ewlu@rivosinc.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=gnu-toolchain@rivosinc.com \
    --cc=lehua.ding@rivai.ai \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).