Skip to content

[6.10] [LinAlg] Dxil Ops should have read/write restrictions #8363

@pow2clk

Description

@pow2clk

Description
The DXIL ops defined in hctdb.py for Linear Algebra have no read/write restrictions applied to them. This limits the compiler's ability to perform some basic optimizations including deduplication of resource handle creation/annotation.

Steps to Reproduce
https://godbolt.org/z/a7bGebqE6

This demonstrates a Thread scope matrix being loaded twice and little more. In each case, the resource handle being loaded from is created and annotated twice.

There are various other cases where optimization opportunities like this could be lost

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug, regression, crashneeds-triageAwaiting triage

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions