[llvm] [RISCV] Fix the worst case for VSHA2MS in SiFive P400/P600 scheduling models (PR #116893)

Reid Tatge via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 20 10:22:17 PST 2024


reidtatge wrote:

Yeah, agreed.

I spent just a very few minutes looking at it, and (not being an expert in
TableGen backends) it looks like SubtargetEmitter.cpp/findWriteResources is
just ignoring the situation, although it does look for aliased duplicates -
and aborts with a diagnostic - but doesn't explicitly look for duplicates
definitions (around line 925).
And CodeGenSchedModels::addProcResource() just quietly returns if its
already been seen for a given ProcModel.
And I may be missing something else...    FWIW :-)

-Reid

On Wed, Nov 20, 2024 at 9:10 AM Min-Yih Hsu ***@***.***>
wrote:

> We might also want to teach TableGen to warn or even throw an error on
> cases like this (i.e. duplicate WriteRes assignments)
>
>> Reply to this email directly, view it on GitHub
> <https://github.com/llvm/llvm-project/pull/116893#issuecomment-2489140746>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AIRIKEYPO32X5DKHLZOLJX32BS7AXAVCNFSM6AAAAABSDKRUNOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBZGE2DANZUGY>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>


https://github.com/llvm/llvm-project/pull/116893


More information about the llvm-commits mailing list