llvm-project
fbd18642 - [RISCV] Simplify EEW/EMUL check in VLOptimizer. NFC (#152100)

Commit
130 days ago
[RISCV] Simplify EEW/EMUL check in VLOptimizer. NFC (#152100) Currently when checking to see if two OperandInfos are compatible, we check to see if the user operand only uses the first scalar and then do two different checks depending on that. However whether the user only uses the first scalar or not is already encoded in OperandInfo, when EMUL is nullopt. This removes the redundant check and keeps the logic in the OperandInfo class to make the call site easier to reason about.
Author
Parents
Loading