From: Pan Li <[email protected]>

This patch would like to combine the vec_duplicate + vmadd.vv to the
vmadd.vx.  From example as below code.  The related pattern will depend
on the cost of vec_duplicate from GR2VR.  Then the late-combine will
take action if the cost of GR2VR is zero, and reject the combination
if the GR2VR cost is greater than zero.

Heh, the diff is a bit misleading because the nmsac and macc patterns are almost identical.

In principle LGTM but why the renaming to mul_then_plus?  Does it refer
to one of the overwriting variants? But the pattern matches both vmacc and vmadd?

--
Regards
Robin

Reply via email to