> Some SiFive cores are quadratic, P870 has 1, 12, 26, 68 > > C920 v2: 0.5, 2.4, 8, 32 > > Maybe we should just have this as LMUL array per core, same for compress > and slides? It might be overkill but on the other hand, why not try to > be exact even if it won't help too much yet? On the other hand, slides > are linear everywhere from what I can see. > > Any opinions? > > BTW I still hope to post a vect patch that allows us to do fine-grained > perm costing before stage 1 closes.
Per-core arrays are ok, they'll likely expand to many other insns. Thinking about it further, throughput is pure HW info and varies by core and insn, our LMUL scaling (linear or quadratic) is just a heuristic. maybe get rid of it entirely and introduce a vendor-provided throughput table (either per-extension per-insn, or grouped by coarser categories).. Not for this cycle, of course; just a thought. -- Regards, Zhongyao
