Skip to content

Replace isSupportedInstr with RISCVII:elementsDependOnVL in RISCVVLOptimizer #149018

@lukel97

Description

@lukel97

RISCVII::elementsDependOnVL uses TS flags defined in tablegen to determine if it's safe to reduce the VL of a pseudo, and RISCVVectorPeephole already uses it in it's implementation of VL reduction.

Now that we've added pretty much all pseudos to isSupportedInstr (#147647), we should look at reusing this.

We need to make sure that other extension tablegen files have ElementsDependOn set correctly, e.g. RISCVInstrInfoXRivos.td, RISCVInstrInfoXSf.td, RISCVInstrInfoXSfmm.td, etc.

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions