Skip to content

Commit 983a957

Browse files
preameslukel97
andauthored
[RISCV][VLOpt] Consolidate EMUL=SEW/EEW*LMUL logic [NFC] (#122021)
All but one of the cases in tree today have EMUL=SEW/EEW*LMUL. Repeating this each time is verbose and introduces oppurtunity for error. (For instance, the comment associated with vwmul.vv was out of sync with the code for same.) Introduce getOperandLog2EEW and move most complexity to it. Then introduce getOperandInfo as a wrapper around previous, and special case the one case which requires it. --------- Co-authored-by: Luke Lau <[email protected]>
1 parent 0b722de commit 983a957

File tree

1 file changed

+104
-85
lines changed

1 file changed

+104
-85
lines changed

0 commit comments

Comments
 (0)