Unverified Commit aff6ffc8 authored by Luke Lau's avatar Luke Lau Committed by GitHub
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.
parent 72b8d25a
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