[llvm] [RISCV][NFC] Use NFList in NFSet (PR #67517)
Michael Maitland via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 27 06:21:15 PDT 2023
================
@@ -219,10 +219,8 @@ defvar FPListW = [SCALAR_F16, SCALAR_F32];
defvar BFPListW = [SCALAR_BF16];
class NFSet<LMULInfo m> {
- list<int> L = !cond(!eq(m.value, V_M8.value): [],
- !eq(m.value, V_M4.value): [2],
- !eq(m.value, V_M2.value): [2, 3, 4],
- true: [2, 3, 4, 5, 6, 7, 8]);
+ defvar lmul = !shl(1, m.value);
----------------
michaelmaitland wrote:
Actually, I think fractional will just take on 0b000 since it’s a 3 bit value. Still fine with me.
https://github.com/llvm/llvm-project/pull/67517
More information about the llvm-commits
mailing list