Commit 5ffbdd9e authored by Luke Lau's avatar Luke Lau
Browse files

[RISCV] Handle .vx pseudos in hasAllNBitUsers (#67419)

Vector pseudos with scalar operands only use the lower SEW bits (or less in the
case of shifts and clips). This patch accounts for this in hasAllNBitUsers for
both SDNodes in RISCVISelDAGToDAG. We also need to handle this in
RISCVOptWInstrs otherwise we introduce slliw instructions that are less
compressible than their original slli counterpart.

This is a reland of aff6ffc8 with the
refactoring omitted.
parent b4a89999
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment