llvm-project
eb35aa90 - [RISCV] Use per-SEW immediate inversion for vrol intrinsic patterns (#190113)

Commit
21 days ago
[RISCV] Use per-SEW immediate inversion for vrol intrinsic patterns (#190113) The VPatBinaryV_VI_VROL multiclass was using InvRot64Imm for all SEW widths when converting vrol immediate intrinsics to vror.vi. This produced unnecessarily large immediates for narrower element types (e.g., 61 instead of 5 for SEW=8 rotate-left by 3). Use the appropriate InvRot{SEW}Imm transform to match what the SDNode patterns already do. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author
Parents
Loading