Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Limit to cases where mul has a single use. There may be a better heuristic here,
but this is a simple starting point.
llvm/lib/Target/RISCV/RISCVInstrInfoVSDPatterns.td | ||
---|---|---|
480 | I am not familiar with SD Patterns and the TableGen syntax, so I may be wrong. According to v-spec: vmacc.vv vd, vs1, vs2, vm # vd[i] = +(vs1[i] * vs2[i]) + vd[i] Shouldn't $rs1 be multiplying with $rs2 here? |
llvm/lib/Target/RISCV/RISCVInstrInfoVSDPatterns.td | ||
---|---|---|
480 | Aren't these patterns for vmadd.vv vd, vs1, vs2, vm # vd[i] = (vs1[i] * vd[i]) + vs2[i] |
llvm/lib/Target/RISCV/RISCVInstrInfoVSDPatterns.td | ||
---|---|---|
480 | Ah I see. You are correct. |
I am not familiar with SD Patterns and the TableGen syntax, so I may be wrong.
According to v-spec:
Shouldn't $rs1 be multiplying with $rs2 here?